【问题标题】:Getting net::ERR_UNKNOWN_URL_SCHEME while calling telephone number with ionic使用 ionic 拨打电话号码时获取 net::ERR_UNKNOWN_URL_SCHEME
【发布时间】:2016-08-25 03:41:09
【问题描述】:

我在 config.xml 中有这段代码

<content src="index.html"/>
<access origin="*"/>
<allow-navigation href="tel:*" />
<allow-intent href="tel:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="http://*/*"/>
<allow-navigation href="tel:*"/>
<allow-navigation href="http://*/*"/>
<allow-navigation href="https://*/*"/>
<access origin="mailto:*" launch-external="true" />
<access origin="tel:*" launch-external="true" />

HTML 中的这个:

<a ng-href="tel:{{item.phone}}"><h3>Anrufen</h3></a>

item.phone 返回 0331234567

在 index.html 中:

<meta name="format-detection" content="telephone=yes">

我的错误是什么?

【问题讨论】:

    标签: angularjs ionic-framework


    【解决方案1】:
    <content src="index.html"/>
    <access origin="*"/>
    <access origin="mailto:*" launch-external="true" />
    <access origin="tel:*" launch-external="true" />
    

    保留这些。删除其他人。

    这两个导致net::ERR_UNKNOWN_URL_SCHEME问题:

    <allow-navigation href="tel:*" />
    <allow-intent href="tel:*"/>
    

    【讨论】:

    • 嗨,我这样做了,它消除了错误,但 iphone 呼叫不再起作用。
    • 致 Shinon Chan:您需要将它们放在 iOS 部分中。 ....
    猜你喜欢
    • 2021-01-18
    • 2014-09-02
    • 1970-01-01
    • 2018-03-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-11
    • 2015-01-31
    相关资源
    最近更新 更多