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

Flutter app won't get notified about the quick link event if the app is at foreground on Android devices #193

Closed
lukeshan-ctm opened this issue Nov 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@lukeshan-ctm
Copy link

Sorry, have to re-open this issue since it is not resolved yet.

Describe the bug
We are developing a Flutter app running on both Android and iOS platforms. The SDK we use is https://pub.dev/packages/flutter_branch_sdk. On iOS, everything works fine. On Android, however the app won't get notified about the quick link event if the app is at foreground. When that happens I can see logs from the Branch SDK saying "onNewIntent call", but the listener in Flutter app side is not called.

To Reproduce
Steps to reproduce the behavior:

Setup properly the Branch.io in Flutter app.
Launch the Flutter app on Android devices.
When the app is running at foreground, use adb command to send a valid quick link to the app.

adb shell am start -a android.intent.action.VIEW \
    -c android.intent.category.BROWSABLE \
    -d "https://xxxxxx.app.link"

The Branch listener is not called.
Expected behavior
The Branch listener should be called.

Screenshots
If applicable, add screenshots to help explain your problem.

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

Flutter: version: [e.g. 3.3.5]
Package version: [e.g. 6.2.1]
Device: [e.g. Pixel 6a]
OS: [e.g. Android 13]

@lukeshan-ctm lukeshan-ctm added the bug Something isn't working label Nov 14, 2022
@RodrigoSMarques RodrigoSMarques removed the bug Something isn't working label Nov 15, 2022
@RodrigoSMarques
Copy link
Owner

In Branch's documentation there is no reference to using this command for testing.

I did a debug by the example application. The onNewIntent method is successfully called, but according to the Branch documentation available here, the Intent must have an extra parameter: branch_force_new_session.

As there is no extra, the Branch SDK is not triggered.

I don't know how to pass this parameter through ADB.

As this may be an issue in the native SDK, I suggest opening a support ticket for Branch:

https://help.branch.io/using-branch/page/submit-a-ticket

@RodrigoSMarques RodrigoSMarques added the bug Something isn't working label Dec 2, 2022
@RodrigoSMarques
Copy link
Owner

RodrigoSMarques commented Dec 2, 2022

@lukeshan-ctm
I found the problem. I'm working on a new version with the fix.

@RodrigoSMarques
Copy link
Owner

Fix in version 6.4.0

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

2 participants