-
Notifications
You must be signed in to change notification settings - Fork 40
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
Deeplink not getting tracked. #127
base: main
Are you sure you want to change the base?
Conversation
Rjaintwilio
commented
Nov 13, 2024
•
edited
Loading
edited
- Updated AnalyticsPlugin.kt to process deeplinks events when started from killed state.
- Updated state.dart file to make the referringApplication nullable.
- Removed deprecated application methods form AnalyticsPlugin.
packages/core/android/src/main/kotlin/com/segment/analytics/AnalyticsPlugin.kt
Outdated
Show resolved
Hide resolved
@@ -216,7 +233,10 @@ class AnalyticsPlugin : FlutterPlugin, NativeContextApi, EventChannel.StreamHand | |||
binding.addOnNewIntentListener(this) | |||
if (this.context != null) { | |||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { | |||
binding.activity.intent.putExtra("referringApplication", binding.activity.referrer.toString()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this key should be "referrer" according to segment docs I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can confirm it's "referrer" in analytics-kotlin.
_eventSink?(["url": url.absoluteString, "referringApplication": sourceApplication]) | ||
}else{ | ||
pendingDeeplinkEventsQueue.append(["url": url.absoluteString, "referringApplication": sourceApplication]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here. "referrer".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update key name to "referrrer"