Search code examples
iosdeep-linkingios11url-schemeopenurl

Deep linking callback issues in iOS11


I have implemented deep linking in my app using URL schema which is working properly in all versions of iOS except 11. The issue is when I load AppURLSchema:// in the device browser it launches the app but none of the appDelegate methods gets called to get the deep linking URL so that I can perform deep linking so that user will be able to see different content based upon the URL.

None of the following functions are getting called:

-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options

-(BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url

-(BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation

This is not an issue on iOS 10, it seems to have been introduced in iOS 11.

Any help will be appreciated.

Thanks!!


Solution

  • It's not just Configuring Firebase SDK causing this issue. With Firebase SDK it's working fine but There is Localytics SDK also integrated in my app and there is some conflict between FIREBASE and LOCALYTICS SDKs due to which my app was not getting the callback.

    So I just removed Firebase framework based upon the priority and everything started working fine.