【发布时间】:2017-01-19 19:54:33
【问题描述】:
我的应用使用 href: tel 链接,并且一年前我第一次发布它时它工作正常。
我在 config.xml 中使用了 allow-intent:
<access origin="*"/>
<access origin="tel:*" launch-external="yes"/>
<access origin="sms:*" launch-external="yes"/>
<plugin name="cordova-plugin-whitelist"/>
<allow-intent href="http://*/*"/>
<allow-intent href="https://*/*"/>
<allow-intent href="tel:*"/>
<allow-intent href="sms:*"/>
<allow-intent href="mailto:*"/>
<allow-intent href="geo:*"/>
但现在新编译的 iOS 应用程序具有相同的配置不适用于 href: tel 链接。什么都没有发生。
正如这里所说:cordova - Why tel:* links don't work on ios? - Stack Overflow 我需要从 config.xml 中删除允许导航。但我那里没有。
什么是让它在新的cordova下工作的正确配置?
编辑:其他外部链接和短信:* 效果不佳,但在 iPad 上,电话:* 链接提供复制号码(预期行为)
【问题讨论】:
-
您知道使用哪个 CLI 来构建应用程序吗?使用的是哪个cordova-ios平台版本?
-
据我所知 phonegap.build.com 在 Cordova 的 4.3.0 上
-
你为什么不检查?该信息在构建页面上
-
不知道这个:(
PhoneGap (iOS / Android / Windows)=>cli-6.3.0 (4.2.0 / 5.2.1 / 4.4.1)