iOS 9 not opening Instagram app with URL SCHEME

后端 未结 14 2206
攒了一身酷
攒了一身酷 2020-11-22 06:33

The following URL opens on iOS 8.3 and lower, but it does not work and iOS 9

let instagramURL = NSURL(string: \"instagram://app\")

Why won\

14条回答
  •  佛祖请我去吃肉
    2020-11-22 07:21

    It doesn't seem anyone has addressed how to specify URLs with embedded parameters. Any URL that contains parameters it won't possible to specify the specific URL in LSApplicationsQueriesSchemes. For example, assume I have an email app that passes the the senders email address:

    myemail://mailto?bob@gmail.com
    

    The only way it seems to get it to work in iOS9 is to remove any parameters.

提交回复
热议问题