【发布时间】:2020-01-08 07:18:32
【问题描述】:
我正在尝试使用指向外部应用程序的深层链接,如下所示:
<Col>
<a href="https://www.youtube.com/channel/channelname/" className="external"><img src="static/youtube.png" width='35px' alt=""/></a>
</Col>
<Col>
<a href="instagram://user?username=username" className="external"><img src="static/instagram.png" width='31px' alt=""/></a>
</Col>
<Col>
<a href="twitter://user?screen_name=username" className="external"><img src="static/twitter.png" width='35px' alt=""/></a>
</Col>
<Col>
<a href="whatsapp://send?phone=+00000000" className="external"><img src="static/whatsapp.png" width='35px' alt=""/></a>
</Col>
它在android中工作正常,但我在IOS中出现以下错误
无法加载网页并出现错误:不支持的 URL
我的 config.xml 文件白名单
<allow-intent href="whatsapp:*" />
<allow-intent href="instagram:*" />
<allow-intent href="twitter:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<allow-intent href="instagram:*" />
<allow-intent href="twitter:*" />
</platform>
请多多指教..
【问题讨论】:
-
您好,我遇到了同样的问题,您解决了这个问题吗?请帮帮我。
标签: swift xcode cordova cordova-plugins phonegap