RamChandraReddy
RamChandraReddy

Reputation: 239

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!!

Upvotes: 2

Views: 1573

Answers (3)

PRAMOD S
PRAMOD S

Reputation: 11

As mentioned in Localytics Documentation, integrations for both platforms can lead to conflicts, particularly around the handling of deeplinks.

You can prevent Firebase from swizzling the methods in your AppDelegate by adding FirebaseAppDelegateProxyEnabled set to NO in your app's info.plist as described in Firebase documentation.

Upvotes: 1

RamChandraReddy
RamChandraReddy

Reputation: 239

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.

Upvotes: 1

Matteo
Matteo

Reputation: 21

I'm facing the same problem and I discovered that the SDK Firebase integrated in my app is blocking the following callback: application:openURL:options.

Without configuring Firebase, all is working ok.

Upvotes: 2

Related Questions