从phonegap启动iOS Messenger [英] Launching iOS messenger from phonegap
本文介绍了从phonegap启动iOS Messenger的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过使用PhoneGap制作的HTML5应用在iOS上启动Messenger?有人可以指出我正确的方向吗?
Is there a way to launch the messenger on iOS from an HTML5 app made with PhoneGap? Can someone point me in the right direction?
谢谢!
推荐答案
您可以通过使用特定方案引发URL请求来在iOS环境中调用另一个应用程序.因此要在您的html中打开电子邮件或电话应用程序,
You can invoke another app in an iOS environment by raising a URL request with specific scheme. so to open an email or phone app, in your html,
<a href="tel:+919900600233" class="call mobile"></a>
<a href="mailto:help@domain.com" class="email"></a>
当用户点击该超链接时,该用户将被带到相应的应用程序.对于邮件应用程序,使用相同的方法,使用
When user taps over this hyper link the user will be taken to the respective apps. same way for message app, use
<a href="sms:+919900600233" class="SMS"></a>
所有URL方案的列表: iOS URL方案
List of all URL schemes : iOS URL Schemes
这篇关于从phonegap启动iOS Messenger的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文