iOS 9 not opening Instagram app with URL SCHEME

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

    As said above, you want to add a key in the info plist, here is the list for most social networks

    LSApplicationQueriesSchemes
        
         fb
         fbapi
         fbauth2
         fbshareextension
         fb-messenger-api
         twitter
         viber
         whatsapp
         wechat
         line
         instagram
          instagram-stories
         kakaotalk
         mqq
         vk
         comgooglemaps
         googlephotos
         ha
         yammer
        
    

    * The first 3 match Facebook (FBSDK 4.6): fbapi, fbauth2, fbshareextension. "Ha" is for snapchat

提交回复
热议问题