【发布时间】:2016-12-05 19:11:08
【问题描述】:
我正在使用 Branch.io 在我的应用程序中实现通用链接。每次我将通用链接(从我的应用程序)复制并粘贴到 Notes 时,我都会单击“打开(应用程序)”,它会将我重定向到错误的视图控制器。它将我引导到用户第一次打开应用程序时看到的主视图控制器。我的 AppDelegate.m 文件中的深层链接路由一定有问题:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
Branch *branch = [Branch getInstance];
WebDeepLinkViewController *WebDeepLinkViewController = [[UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]] instantiateInitialViewController];
[branch registerDeepLinkController:WebDeepLinkViewController forKey:@"Article"];
【问题讨论】:
标签: ios deep-linking branch.io ios-universal-links