iOS 9 not opening Instagram app with URL SCHEME

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

提交回复
热议问题