iOS 9 not opening Instagram app with URL SCHEME

后端 未结 14 1894
攒了一身酷
攒了一身酷 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:27

    When I tried to call Facebook from my own app today, I found that there is no a LSApplicationQueriesSchemes key I can add to the Info.plist (Xcode Version 8.2.1 (8C1002)). I opened the Info.plist with Sublime Text and manually added it into the file, then it worked. Just to let you know that if you cannot find the key, simply add it yourself.

    0 讨论(0)
  • 2020-11-22 07:28

    Well you can open an app by calling openURL: or openURL:options:completionHandler: (iOS 10 onwards) directly without making the conditional check canOpenURL:. Please read the discussion section in Apple doc for canOpenURL: method which says:

    the openURL: method is not constrained by the LSApplicationQueriesSchemes requirement.

    0 讨论(0)
提交回复
热议问题