如何通过phonegap打开iphone应用程序 [英] how do I open iphone apps via phonegap

查看:170
本文介绍了如何通过phonegap打开iphone应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的phonegap应用程序中打开iphone应用程序,如联系人和日历,我不介意这样做会把我的应用程序在后台。我可以打开浏览器并使用window.open但是如何打开其他应用程序?

I want to open iphone apps like Contacts and Calendar from within my phonegap app, I don't mind that doing so will put my app in the background. I can open the browser and using window.open but how do I open other apps?

例如 window.open(contacts: ,'_blank'); 不起作用

推荐答案

基于或其他方式,可以导致另一个应用程序启动是打开一个使用目标应用程序的自定义URL方案的URL。所以,如果联系人应用程序支持一些自定义方案,你是运气。如果没有,你就失去了运气。

The only way that one app, PhoneGap-based or otherwise, can cause another app to launch is to open an URL that uses the target app's custom URL scheme. So, if the Contacts app supports some custom scheme, you're in luck. If not, you're out of luck.

这篇关于如何通过phonegap打开iphone应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆