Open arthurgiani opened 2 months ago
This issue has been automatically marked as stale due to inactivity for 60 days. If this issue is still relevant, please respond with any updates or this issue will be closed in 7 days. If you believe this is a mistake, please comment to let us know. Thank you for your contributions.
Describe the bug
This issue was originally posted on the Branch Flutter Plugin Repository.
When listening to the deep link, if deepLink[+match_guaranteed] is false, branch deep link is modifying data inside.
Steps to reproduce
The following flow is being made:
1) A deep link is created through the Branch API. 2) Through the API, I added a key-pair 'params' attribute containing some important info for my business rule on this link. 3) This link is sent to a random user (that does not have the app installed). 4) The user clicks on the link and download the app. 5) The app listens to the deep link.
Now, imagine that this 'params' attribute that I described on 2) contains an integer as one of the values. In this scenario, when +match_guaranteed=false, this attribute is being sent through FlutterBranchSdk.listSession() as a DOUBLE, not an int.
Screenshots Screenshot 1: event response when +match_guaranteed is FALSE (when app opens for the first time after the install) On the deep link creation, eventId is 0 (int), and not 0.0 (double)
Screenshot 2: event response when +match_guaranteed is TRUE (when I click on the deep link with the app installed) On the deep link creation, eventId is 0 (int), exactly the way I settled on the backend.
Expected behavior
Expected behavior Branch link should always show exactly the same information as when they are created.
SDK Version
3.6.0
XCode Version
15.4
Device
Iphone 15 Pro Max
OS
17.4
Additional Information/Context
No response