Repository navigation
MOBILE-408: Pass App Link intents to the SDK from onNewIntent - #244
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the change forwarding non-push App Link intents to the Mindbox SDK.
No open issues 🎉
What changed in this PR
This PR fixes warm App Link handling in the Flutter Android plugin by forwarding non-push intents to the Mindbox SDK, allowing it to track link visits and their URLs.
Changes:
- Forward non-push intents from
onNewIntenttoMindbox.onNewIntent, preserving existing push handling. - Extract the push intent extra key into a shared constant.
| File | Description |
|---|---|
mindbox_android/android/src/main/kotlin/cloud/mindbox/mindbox_android/MindboxAndroidPlugin.kt |
Forward non-push intents to the SDK and centralize the push extra key. |
Review effort: Balanced
FlutterActivity hands a new intent only to plugins and does not call setIntent, and the plugin forwarded only push intents. A warm App Link open reached Mindbox as a direct visit without the URL, and an open into the app on screen sent no visit at all.
justSmK
force-pushed
the
feature/MOBILE-647-android-app-links
branch
from
November 17, 2026 16:13
d770dec to
16cb877
Compare
sergeysozinov
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FlutterActivityhands a new intent only to plugins (FlutterActivityAndFragmentDelegate.onNewIntent), withoutsetIntent, and the plugin forwarded only push intents. With thesingleTopMainActivityof the Flutter template, a warm App Link open reached Mindbox as adirectvisit without the URL, and an open into the app on screen sent no visit. The plugin now passes every non-push intent toMindbox.onNewIntent; the SDK keeps only intents with data and drops repeats by hash.Checked on the PushOk Flutter app (Android 17 emulator) with the patched plugin: from background the log goes from
Track visit event with source direct and url nulltosource link and url https://mindbox.ru/…, and into the app on screen from no visit tosource link. No Kotlin unit-test harness exists inmindbox_android, so the check is that run.From background the SDK also sends a
directvisit just before thelinkone: on Android 10+onStartcomes beforeonNewIntent, so the foreground return fires first. Native and React Native apps get the same pair (accepted in WMSDK-548); only the Android SDK can drop it.Deep links with a custom scheme (
myapp://…) now reach the SDK too and go out as adirectvisit without a URL: a new visit into the app on screen, a seconddirectfrom background on Android 10+. An in-app button whoseredirectUrlopens the app itself now sends a visit as well. Native apps behave the same.Fixes MOBILE-408.