ios-branch-deep-linking-attribution icon indicating copy to clipboard operation
ios-branch-deep-linking-attribution copied to clipboard

Failure to get callbacks when upgrading from 3.0.0 to 3.3.0

Open Splash04 opened this issue 11 months ago • 6 comments

Describe the bug

Faced with issue after updating SDK version. Old app contains SDK v3.0.0; new app version: v3.3.0.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        Branch.setUseTestBranchKey(true)
        Branch.getInstance().initSession(launchOptions: launchOptions, automaticallyDisplayDeepLinkController: false, deepLinkHandler: handleDeepLink)
}

func handleDeepLink(params: [AnyHashable: Any]?, error: Error?) {}

The main issue: After app update, deepLinkHandler is never called. App restart not help. The only solution is to delete app and install from scratch. But such case is NOT acceptable for app users.

Network finish operation https://api3.branch.io/v1/open 0.944s. Status 200 error (null).

Expected result: deepLinkHandler call just after app launch.

  • Not sure about behavior with TestBranch == false. I had added additional logs to track this issue on prod.
  • I had 1 simulator (iOS 17.2) and 2 devices (13 pro 15.7.1; 12 pro max 16.7.2) that have the same issue after first update.
  • But I'm not able to reproduce this issue on the same device a second time. Those.: Faced with issue -> remove the app -> install app version with SDK 3.0.0 and run -> Install App with SDK 3.3.0 and run -> All looks good. Maybe I need to use an app for some time, or receive some link before updating to reproduce the issue.

Log file: Branch_io_log.txt

The same issue as users described here: https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/issues/760#issuecomment-1640572758 https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/issues/914#issue-434226742 https://github.com/BranchMetrics/react-native-branch-deep-linking-attribution/issues/532#issue-554558963 And a lot of threads at stackoverflow.

Steps to reproduce

Expected behavior

deepLinkHandler call after app launch.

SDK Version

3.3.0

XCode Version

15.2

Device

iPhone 13 pro

OS

15.7.1

Additional Information/Context

No response

Splash04 avatar Mar 06 '24 20:03 Splash04