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

前端 未结 3 1879
余生分开走
余生分开走 2020-12-02 19:16

Is it possible to open native iOS app, e.g. calendar or notes, from an HTML link which is in website? I tried to find an example but I couldn\'t. I ran into these URL scheme

3条回答
  •  孤街浪徒
    2020-12-02 19:47

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

    Click me!

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

    CFBundleURLTypes
    
    
        CFBundleURLName
        com.companyname.appname
        CFBundleURLSchemes
        
            calendar
        
    
    
    

    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!

提交回复
热议问题