-
Notifications
You must be signed in to change notification settings - Fork 92
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
Flutter SDK init falls into loop when race condition happens during the initialization. #311
Comments
Hi @klim-branch Let me know which version of the package is being used. Issue #301 reported similar behavior and was resolved in version 7.2.0 |
thank you for the confirmation,
Perhaps I will let them know to use version above 7.2.0. |
Hi @RodrigoSMarques I've also tried with the sample application given by the client, upgraded our SDK, resolved all of the flutter dependencies to match js: ^0.7.1, and was able to reproduce the issue from my end. The change that I made from the sample app is the following:
Could you please kindly take a look into it? |
hi @klim-branch I have added Firebase Cloud Messaging into an application. I sent the notification, opened the application from the notification and was unable to reproduce the problem. I need more details to be provided, such as the list of packages used by the application to try to create the same scenario. |
Hi @RodrigoSMarques thank you for looking into the issue! Could you please look into the sample code that was shared to you? |
Version 8.0.0 released. Take the tests and report the results. |
Thank you very much for the support here! |
Hi, this is Kun from the Branch Solutions Integration Engineering team.
The Flutter SDK’s initialization is not handled correctly when it gets into a race condition by initializing other 3rd party services with Firebase Messaging Services (default push notification package)
Reproduction step
We indeed do have a full code example with the reference given from the client side.
please send out the email to kunho.lim@branch.io.
Initialization:
Observation
Where you can see that the initialization continuously loop with the message: BranchReferralInitListener - error: Warning. Session initialization already happened. To force a new session, set intent extra, "branch_force_new_session", to true.
From the UX/UI side, since the application is not initialized, it is showing a blank black screen and not loading anything from the application.
https://drive.google.com/file/d/1l0WkH82lH9DCyIEKTW7OgQOO2HLCNKfs/view?usp=sharing
deally, when the Branch init fails, it should just retry for a certain amount of time and return. However, it seems like in this current situation, it is not returning and constantly try to initialize the SDK.
Please check if we are enabling any other async initialization or any initialization error handling for Flutter SDK.
The text was updated successfully, but these errors were encountered: