ios-branch-sdk-spm icon indicating copy to clipboard operation
ios-branch-sdk-spm copied to clipboard

initSessionWithLaunchOptions being called twice

Open pyettra opened this issue 8 months ago • 1 comments

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

pyettra avatar Jun 03 '24 20:06 pyettra