离子InAppBrowser显示err_unknown_url_scheme

时间:2018-07-16 10:28:33

标签: cordova android-intent ionic2 ionic3 inappbrowser

我正在尝试通过Cordova InAppBrowser打开重定向的URL(使用intent://协议)。但是,重定向后已显示err_unknown_url_scheme。

我们已经利用白名单来启用协议。

我们的config.xml

<access origin="*" />
<access origin="mailto:*" />
<access origin="tel:*" />
<access origin="intent:*" />
<allow-intent href="http:///" />
<allow-intent href="https:///" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<allow-intent href="intent:*" />
<allow-navigation href="intent:*" />

使用html测试

<a href="intent://xxxxx">Do Whatever</a>

通过内置浏览器进行测试

let testUrl = 'intent://xxxxx';
this.iab.create(testUrl, '_system', 'location=yes');

inappbrowser Screenshot 谢谢!

0 个答案:

没有答案