Appsflyer on iOS prevents from others to receive the openUrl notifications
See original GitHub issueAppsFlyerAppController.mm has the following code which restricts from others to receive the openUrl notifications
-(BOOL) application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options {
NSLog(@"got openUrl: %@",url);\n
[[AppsFlyerLib shared] handleOpenUrl:url options:options];\n
return YES;
}
the probable fix would be to call the superclass method so that others who registered for the notification can also receive it
-(BOOL) application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary *)options {
NSLog(@"got openUrl: %@",url);
[super application:application openURL:url options:options];
[[AppsFlyerLib shared] handleOpenUrl:url options:options];
return YES;
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:26 (3 by maintainers)
Top Results From Across the Web
API reference
Initialize the AppsFlyer SDK with the devKey and appID. The dev key is required for all apps and the appID is required only...
Read more >Configure your AppsFlyer integration in your App Delegate
This guide shows how to add AppsFlyer's SDK your iOS app. You can track installs, updates, sessions and additional in-app events beyond app...
Read more >Prevent "Would you like to open (URL)" dialog on iOS push ...
I use deep links in push notifications (using OneSignal + React Native) to open specific parts of my app. Recently my users started...
Read more >iOS Advanced Features
CleverTap automatically tracks universal links that open your application. If you have universal (deep) links coming to your app, you can capture the...
Read more >AppsFlyer Destination | Segment Documentation
To prevent this, you can enable the new Fallback to send IDFV when advertisingId key not present setting in your AppsFlyer destination settings....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
From looking at the code, it seems that AppsFlyer could use UnityRegisterAppDelegateListener to handle all of its notification needs. But, when you comment out
IMPL_APP_CONTROLLER_SUBCLASS
, AF will no longer receive thecontinueUserActivity
callback, which is apparently used to handle OneLink deep links.Thus, for a simple fix for gamedevs using Firebase, Facebook and AppsFlyer SDKs, I suggest commenting out
IMPL_APP_CONTROLLER_SUBCLASS
and callingswizzleContinueUserActivity
in AppsFlyer+AppController.mI’m closing this issue because it has been inactive for a while. This probably means that it is not reproducible or it has been fixed in a newer version Please reopen if you still encounter this issue 😃
Thank you!