简体   繁体   中英

canOpenURL: failed for URL: "instagram://" - error: "This app is not allowed to query for scheme instagram"

I've followed all guidelines by declaring the LSApplicationQueriesSchemes under Info.plist file but it return failed for those strings. I've no idea on it. Appreciate if someone could help it:)

<dict>
   <key>NSBonjourServices</key>
   <dict>
      <key>0</key>
      <string>_dartobservatory._tcp</string>
   </dict>
   <key>LSApplicationQueriesSchemes</key>
   <array>
      <string>facebook</string>
      <string>whatsapp</string>
      <string>twitter</string>
      <string>instagram</string>
      <string>instagram-stories</string>
      <string>linkedin</string>
   </array>
</dict>
</plist>

Errors:

在此处输入图像描述

Info.plist

在此处输入图像描述

Info.plist

在此处输入图像描述

While adding LSApplicationQueriesSchemes you need to edit Info.plist for all schemes. So you need to edit Info.plist , Info-Debug.plist and any other Info.plist if you have created any different scheme for iOS project.

As per documentation of appinio_social_share some applications support image for iOS and some applications don't support even if you provide it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM