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
94 stars 81 forks source link

listener getting data 2 times in package - flutter_branch_sdk: ^6.9.0 operating system - android flutter - 3.19.6 device - samsung m30 #330

Open DeekanshuSaini opened 1 month ago

DeekanshuSaini commented 1 month ago

FlutterBranchSdk.initSession().listen((data) async { print(data); }); This method prints data 2 times whenever i click on deep link.

DeekanshuSaini commented 1 month ago

@RodrigoSMarques please review this asap.

RodrigoSMarques commented 1 month ago

What version of the package? Which Operating System? Which version of Flutter? Which device?

Fill in the issue opening template, otherwise it will be closed.

DeekanshuSaini commented 1 month ago

package - flutter_branch_sdk: ^6.9.0 operating system - android flutter - 3.19.6 device - samsung m30

RodrigoSMarques commented 1 month ago

Did you test on version 8.0.2?

RodrigoSMarques commented 1 month ago

In AndroidManifest.xml the property android:launchMode="singleTask"?

DeekanshuSaini commented 1 month ago

not yet i have done the configuration according to the 6.9.0 as it fits compatible with the other libraries in my project. Can u please suggest any solution in this version.

DeekanshuSaini commented 1 month ago

In AndroidManifest.xml the property android:launchMode="singleTask" ?

yes we have done this.

RodrigoSMarques commented 1 month ago

I need log from Logcat for Android for analysis.

But if there is an error, the correction will be made in the newer version and not in 6.9.

hchaviano commented 3 weeks ago

@RodrigoSMarques I faced something like this with version 7.1.0 and after added the android:launchMode="singleTask" it starts to work but only for debug mode in release mode doesn't work and when you print the data is showing this: {+clicked_branch_link: false, +is_first_session: false}

RodrigoSMarques commented 3 weeks ago

@RodrigoSMarques I faced something like this with version 7.1.0 and after added the android:launchMode="singleTask" it starts to work but only for debug mode in release mode doesn't work and when you print the data is showing this: {+clicked_branch_link: false, +is_first_session: false}

Update to the latest version 8.0.2

E2-venkat commented 2 weeks ago

Facing the same issue sometimes branch SDK listening for the link multiple times in both Android and ios @RodrigoSMarques flutter branch SDK version: 7.3.0

RodrigoSMarques commented 2 weeks ago

Facing the same issue sometimes branch SDK listening for the link multiple times in both Android and ios @RodrigoSMarques flutter branch SDK version: 7.3.0

Update to the latest version 8.0.2

mahee510 commented 1 week ago

@RodrigoSMarques The problem is not limited to Android. There is always an issue with this on both iOS and Android devices. For my project, I used flutter_branch_sdk: 7.3.0.

RodrigoSMarques commented 1 week ago

@RodrigoSMarques The problem is not limited to Android. There is always an issue with this on both iOS and Android devices. For my project, I used flutter_branch_sdk: 7.3.0.

Update to the latest version 8.0.2

mahee510 commented 1 week ago

@RodrigoSMarques The problem is not limited to Android. There is always an issue with this on both iOS and Android devices. For my project, I used flutter_branch_sdk: 7.3.0.

Update to the latest version 8.0.2

@RodrigoSMarques There is no indication in the change log that you are using version 8.0.2.