RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
100 stars 90 forks source link

Issue with Branch.io Integration on Apple 14 pro #314

Closed wdcs-nadimansari closed 5 months ago

wdcs-nadimansari commented 6 months ago

Describe the bug The main issue I am facing is that the FlutterBranchSdk.listSession().listen() method, which is used to retrieve session data, does not seem to be triggering the onData callback consistently on iOS 14 devices. This prevents me from properly tracking user sessions and handling deep links within the app. I am facing this very unexpectedly, Sometimes I am not getting a callback of onData method inside FlutterBranchSdk.listSession().

FlutterBranchSdk.listSession().listen( (data) async { // In some cases on Apple 14 Pro, this block is not triggering. } );

Expected behavior The listen method must get called each time so app can listen Deep-link and take action on it.

Smartphone (Please complete the following information. remove session if not platform):

Deep-link is working well with Android and Apple 7 devices but i am facing issue with iOS 14 only.

RodrigoSMarques commented 6 months ago

Please provide more details.

In which cases the link does not work: At installation? After the application installed?

Is the problem only on iOS 14.0? Would the iOS version be 14.5?

wdcs-vivekmakvana commented 6 months ago

Steps to reproduce :

RodrigoSMarques commented 6 months ago

@wdcs-nadimansari Please downgrade to version 6.9.0 and give it a test. Remember to comment out the call to the FlutterBranchSdk.init() method;

If it works, this problem is already being addressed in version 8.0 that will be available in the next few days.

It was a bug added in version 7.0.0

wdcs-vivekmakvana commented 6 months ago

@RodrigoSMarques

I downgraded package to 6.9.0 and facing issue in Android now but In iOS its working fine.

Issue : Getting listen twice in FlutterBranchSdk.initSession().listen and also referred this documentation : https://help.branch.io/faq/docs/android-app-calls-branch-multiple-times-when-resuming I have already followed this step.

RodrigoSMarques commented 6 months ago

@RodrigoSMarques

I downgraded package to 6.9.0 and facing issue in Android now but In iOS its working fine.

Issue : Getting listen twice in FlutterBranchSdk.initSession().listen and also referred this documentation : https://help.branch.io/faq/docs/android-app-calls-branch-multiple-times-when-resuming I have already followed this step.

Ok. So the change that I will make available in the next few days will also solve the problem on IOS 14.

wdcs-vivekmakvana commented 6 months ago

We are facing issue in production, Can you please give us date for SDK release?

RodrigoSMarques commented 6 months ago

Hey guys.

Version 8.0.0 released.

Take the tests and report the results.

wdcs-vivekmakvana commented 5 months ago

Hello @RodrigoSMarques... Thank you for your support, Now its working fine.