Search code examples
iosfacebookios9deep-linkingapplinks

iOS App Link can be opened from gmail/safari but not from facebook/twitter


i try to open an iOS application from facebook/twitter iOS apps.

For that i use App link, using the key in info.plist : CFBundleURLSchemes.

What i do, in order to have an acceptable link in twitter/facebook post i use a fake webpage which has the function to redirect me to the url link of my app . eg: "myapp://"

This works fine if i open my facebook post (url) using safari.

But when it comes to facebook/twitter apps , it redirects to the new webpage but it doesn't prompt the popup to open my app. I can see in the logs error: "This app is not allowed to query for scheme myapp"

My first understand was that this is due to iOS 9 restriction where you should mention in your whitelist [LSApplicationQueriesSchemes] which app urls you are accepting to open from your app.

But surprisingly when trying to open the same webpage from gmail application (which is not OS app) it opens my application without issues.

Am i doing anything wrong ?


Solution

  • You have to specify in CFBundleURLSchemes the scheme for Facebook and Twitter. Read this post for the Facebook solution.

    EDIT

    I've followed this steps and all worked out. Facebook tutorial for App Links on iOS. Hope this solves your problem!