通过设置断点,我注意到应用程序退出时会调用处理程序。
我做错了吗?如果没有,为什么分公司想要这样做?
// This is in app delegate
branch.initSessionWithLaunchOptions(launchOptions, automaticallyDisplayDeepLinkController: true, deepLinkHandler: { params, error in
// breakpoint
if error == nil {
self.handleDeepLink(params)
}
else {
error?.showInToast()
}
})
}
答案 0 :(得分:0)
Alex来自Branch:这不是我们SDK的预期行为。您是否重写了其他任何应用生命周期方法(例如applicationDidBecomeActive
或applicationWillResignActive
)?