BranchMetrics / unity-branch-deep-linking-attribution

The Branch Unity 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://docs.branch.io/apps/unity/
MIT License
118 stars 24 forks source link

Branch callback error with proguard #193

Open sibichakravathy-s opened 3 years ago

sibichakravathy-s commented 3 years ago

2021-06-05 17:48:50.838 27223 27307 Error Unity KeyNotFoundException: The given key was not present in the dictionary. 2021-06-05 17:48:50.838 27223 27307 Error Unity at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x00000] in <00000000000000000000000000000000>:0 2021-06-05 17:48:50.838 27223 27307 Error Unity at Branch._asyncCallbackWithParams (System.String callbackDictString) [0x00000] in <00000000000000000000000000000000>:0

so i tried to log it at _asyncCallbackWithParams 2021-06-05 17:48:50.831 27223 27307 Info Unity {"callbackId":"","error":"Warning. Session initialization already happened. To force a new session, set intent extra, \"branch_force_new_session\", to true."}

This error only happens when i install the game on my device through unity Build and Run and the game is installed and launched when the screen is locked. Everything works as intended without proguard though. everything is alright if it is launched when the screen is not locked.

It has the same behaviour even when i disable proguard on a new project. So i guess it is unrelated to proguard and it is normal behaviour?.