I am using https://branch.io/ in an iOS app.
I followed the documentation in start.branch.io to set a deeplink.
It works up to a certain point. But I continuously get thrown to Safari and the place on the appStore do download the app, when the app itself should only be fired.
Here is my code just in case:
- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{
Branch *branch = [Branch getInstance];
[branch initSessionWithLaunchOptions:launchOptions
andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
if (!error && params && [params objectForKey:@"XP"]) {
// We do things with the parameter XP!
}
}];
return YES;
}
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity
restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler
{
BOOL handledByBranch = [[Branch getInstance] continueUserActivity:userActivity];
return handledByBranch;
}
What may be wrong in what I did? Somewhere in the settings? Any tip is welcome.