How to open native iOS app (calendar, notes…) from a link on website?

纵然是瞬间 提交于 2019-11-27 11:57:17

If you're looking for the URL Schema, iPhone Calendar is: CALSHOW:

Yes you can very well possible to do that. You're right in placing the link like this:

<a href="calendar://">Click me!</a>

Now go to your iOS app's info.plist file. In that add the following tags:

<key>CFBundleURLTypes</key>
<array>
<dict>
    <key>CFBundleURLName</key>
    <string>com.companyname.appname</string>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>calendar</string>
    </array>
</dict>
</array>

Save the plist file and exit it. After this when you open the web page in Safari browser of your iOS device and click on the link, your iOS app will invoke. I hope it helps!

Andrew

Calendar and Notes do not have URL schemes. Apple provides a reference for those of their apps that do use URL schemes here:

https://developer.apple.com/library/archive/featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!