canOpenUrl - This app is not allowed to query for scheme instragram

后端 未结 3 1985
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-07 14:10

Im trying to add the Instagram url to my app in iOS9 however I am getting the following warning:

-canOpenURL: failed for URL: \"instragram://media?id=MEDIA_I         


        
3条回答
  •  春和景丽
    2020-12-07 14:34

    1. Your LSApplicationQueriesSchemes entry should only have schemes. There's no point to the second entry.

      LSApplicationQueriesSchemes
      
          instagram
      
      
    2. Read the error. You are trying to open the URL with a typo in the scheme. Fix your reference to instragram in your call to canOpenURL:.

提交回复
热议问题