You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
In my Ionic (just migrate to) 5 project I need to handle both branch and regular Universal links. To do this I use Branch cordova plugin and https://github.com/ionic-team/ionic-plugin-deeplinks. Universal links were working fine until I added the Branch plugin. After some digging I think the problem is that both plugins override the continueUserActivity method, so what is happening is that Branch cordova plugin consume the universal link without it being propagated to the other plugin.
Is there a way to handle non branch Universal Links from Branch cordova plugin?
If not why Branch override this method? Is it possible to simply remove the following code in AppDelegate+BranchSdk.m?
`// Respond to Universal Links
Hello,
In my Ionic (just migrate to) 5 project I need to handle both branch and regular Universal links. To do this I use Branch cordova plugin and https://github.com/ionic-team/ionic-plugin-deeplinks. Universal links were working fine until I added the Branch plugin. After some digging I think the problem is that both plugins override the continueUserActivity method, so what is happening is that Branch cordova plugin consume the universal link without it being propagated to the other plugin.
Is there a way to handle non branch Universal Links from Branch cordova plugin?
If not why Branch override this method? Is it possible to simply remove the following code in AppDelegate+BranchSdk.m?
`// Respond to Universal Links
(BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {
if (![[Branch getInstance] continueUserActivity:userActivity]) {
// send unhandled URL to notification
if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:@"BSDKPostUnhandledURL" object:[userActivity.webpageURL absoluteString]]];
}
}
return YES;
}`
Commenting it out works but I am not sure if doing this results in breaking something else.
Thank you
The text was updated successfully, but these errors were encountered: