Could anybody help me out please? iOS Branch deep link does not open application on device, but works well on simulator. My simulator OS version is 10.3, my iPhone 5s OS version is 10.3.3
What I have done:
Dashboard: Settings -> Link Settings:
- "Always try to open app" is checked
- "IOS URI Scheme" is set to the application's custom URI scheme.
- "Enable Universal Links" is checked.
- Bundle Identifier & Apple App Prefix are both set correctly.
Link Domain was set as bellow:
Test Link was created as bellow:
Xcode Configuration:
1.Associated Domains
2.Info.plist file
And, code as bellow:
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { [[Branch getInstance] handleDeepLink:url]; BOOL success = NO; success = [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation]; if (!success) { success = [router handleURL:url withCompletion:nil]; } //force return YES return YES; } - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *))restorationHandler { BOOL ret = NO; ret = [[Branch getInstance] continueUserActivity:userActivity]; if (!ret) { ret = [router handleUserActivity:userActivity withCompletion:NULL]; } //force return YES return YES; } What I tested:
I sent the Test Deep Link to my email, and I open the email through Safari. While I click the url on DEVICE, an alert was shown to tell me App Store will be open. While I click the url on SIMULATOR, my app was open successfully.
I pasted the Test Deep Link into Notes on DEVICE, while I click the url, an action sheet was shown and provide two option: open in Safari, Open in xxx(my app name). I click both options, they all could open my app successfully.
Here is all the configuration, code, steps, and I have also tried to change branch_app_domain to applinks:xxxapp.app.link, it didn't work neither.
Is there anything that I missed during the integration procedure? Any suggestion would be very appreciate. Thanks in advance!
Roby






