iOS 9 not opening Instagram app with URL SCHEME

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

    This is a new security feature of iOS 9. Watch WWDC 2015 Session 703 for more information.

    Any app built with SDK 9 needs to provide a LSApplicationQueriesSchemes entry in its plist file, declaring which schemes it attempts to query.

    LSApplicationQueriesSchemes
    
     urlscheme
     urlscheme2
     urlscheme3
     urlscheme4
     
    

提交回复
热议问题