BranchMetrics / ios-branch-deep-linking-attribution

The Branch iOS SDK for deep linking and attribution. Branch helps mobile apps grow with deep links / deeplinks that power paid acquisition and re-engagement campaigns, referral programs, content sharing, deep linked emails, smart banners, custom user onboarding, and more.
https://help.branch.io/developers-hub/docs/ios-sdk-overview
MIT License
731 stars 228 forks source link

initSessionWithLaunchOptions callback being called twice #1404

Open pyettra opened 2 months ago

pyettra commented 2 months 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 1 month ago

Bump, I'm also encountering this issue