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

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

Closed DeekanshuSaini closed 4 months ago

DeekanshuSaini commented 5 months ago

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

DeekanshuSaini commented 5 months ago

@RodrigoSMarques please review this asap.

RodrigoSMarques commented 5 months 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 5 months ago

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

RodrigoSMarques commented 5 months ago

Did you test on version 8.0.2?

RodrigoSMarques commented 5 months ago

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

DeekanshuSaini commented 5 months 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 5 months ago

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

yes we have done this.

RodrigoSMarques commented 5 months 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 5 months 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 5 months 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 4 months 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 4 months 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 4 months 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 4 months 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 4 months 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.