Html 在 iOS 中打开应用程序的链接
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17086672/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Links to open apps in iOS
提问by Evert De Spiegeleer
I want to open apps using a link. So when you tap a link in safari, you open an app.
我想使用链接打开应用程序。因此,当您在 safari 中点击链接时,您会打开一个应用程序。
I had already found these links:
我已经找到了这些链接:
Message --- sms:
Maps --- maps://
App Store --- itms-apps://
iTunes --- itms://
Safari --- http://blanksafari.com/
iBooks --- ibooks://
Videos --- videos://
Music --- music://
Mail --- mailto:
Reminders --- x-apple-reminder://
Calendar --- calshow://
I also want to open following apps with a link, so my question is… What is the link to open those apps?
我还想通过链接打开以下应用程序,所以我的问题是……打开这些应用程序的链接是什么?
Phone
Photos
Camera
Clock
Game Center
Notes
Passbook
Settings
Facetime (app is in iOS 5 and iOS 7)
Weather
Contacts
Calculator
Stocks
采纳答案by fletch
The apps would need to have a custom URL scheme registered in their info.plist. A registry site was launched a while back in an attempt to make it easier for developers to discover existing custom URL schemes: http://handleopenurl.com/Unfortunately, the site has been blacklisted by Norton Safe Web, so click at your own risk.
应用程序需要在其 info.plist 中注册自定义 URL 方案。为了让开发人员更容易地发现现有的自定义 URL 方案,不久前推出了一个注册站点:http: //handleopenurl.com/不幸的是,该站点已被 Norton Safe Web 列入黑名单,因此请自担风险点击.
回答by BlackSheep
Have to many possibility, here there a calling from Safari from developer.apple.com:
有很多可能性,这里有来自 developer.apple.com 的 Safari 调用:
Here there a youtube dev for chrome mobile
这里有一个适用于 chrome mobile 的 youtube 开发者
This Is for Linkedin: linkedin://profile/{id}
这是给领英的: linkedin://profile/{id}
The best way to get all information is to learn the PhoneGapScheme, and if you want with phoneGap you can try to convert your web app in to a Partial Native app in Xcode.
获取所有信息的最佳方式是学习PhoneGapScheme,如果您想使用 phoneGap,您可以尝试将您的 Web 应用程序转换为 Xcode 中的 Partial Native 应用程序。
Hope this help you.
希望这对你有帮助。