BranchMetrics / ios-branch-sdk-spm

Branch iOS SDK Swift Package Manager distribution
https://help.branch.io/developers-hub/docs/ios-basic-integration#via-swift-package-manager
MIT License
15 stars 10 forks source link

initSessionWithLaunchOptions being called twice #32

Open pyettra opened 4 weeks ago

pyettra commented 4 weeks ago

Describe the bug

Hello! Something very odd happing while calling initSessionWithLaunchOptions: - (void)initSessionWithLaunchOptions:(NSDictionary *)options andRegisterDeepLinkHandler:(callbackWithParams)callback { [self initSessionWithLaunchOptions:options isReferrable:YES explicitlyRequestedReferrable:NO automaticallyDisplayController:NO registerDeepLinkHandler:callback]; }

Whenever I try to open a branch link, the callback is being called twice. This happens if I have the app open on background or not. Right now, it's not having effects on the way I receive the branch link params, but the doubled calls are causing side effects on my UI.

Steps to reproduce

  1. add a debugger on initSessionWithLaunchOptions
  2. click on a branch link
  3. see initSessionWithLaunchOptions callback being called twice

Expected behavior

The initSessionWithLaunchOptions should only be called once

SDK Version

3.4.3

XCode Version

15.1

Device

iPhone 15 Plus

OS

15.0

Additional Information/Context

No response

sleepygarden commented 4 days ago

Bump, my team is also experiencing this issue