Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wdcs-nadimansari opened this issue Apr 24, 2024 · 8 comments
Closed

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

wdcs-nadimansari opened this issue Apr 24, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@wdcs-nadimansari
Copy link

wdcs-nadimansari commented Apr 24, 2024

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):

  • Flutter: version: 3.19.3

  • Package version: 7.3.0

  • OS: iOS 17.4.1

  • Device: Apple 14 pro

  • Additional context

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

@wdcs-nadimansari wdcs-nadimansari added the bug Something isn't working label Apr 24, 2024
@RodrigoSMarques
Copy link
Owner

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
Copy link

Steps to reproduce :

  • Run app in release mode on Apple device /// iOS version : 17.4.1
  • Check deep-link with foreground and background its works fine.
  • Now kill the app and navigate with the same link but FlutterBranchSdk.listSession().listen not triggering sometimes.

@RodrigoSMarques
Copy link
Owner

@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
Copy link

@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
Copy link
Owner

@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
Copy link

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

@RodrigoSMarques
Copy link
Owner

Hey guys.

Version 8.0.0 released.

Take the tests and report the results.

@wdcs-vivekmakvana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants