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

Deeplink not getting tracked. #127

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Rjaintwilio
Copy link
Contributor

@Rjaintwilio Rjaintwilio commented Nov 13, 2024

  1. Updated AnalyticsPlugin.kt to process deeplinks events when started from killed state.
  2. Updated state.dart file to make the referringApplication nullable.
  3. Removed deprecated application methods form AnalyticsPlugin.

@Rjaintwilio Rjaintwilio added the bug Something isn't working label Nov 13, 2024
@Rjaintwilio Rjaintwilio self-assigned this Nov 13, 2024
@@ -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())
Copy link

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.

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.

Comment on lines 22 to 24
_eventSink?(["url": url.absoluteString, "referringApplication": sourceApplication])
}else{
pendingDeeplinkEventsQueue.append(["url": url.absoluteString, "referringApplication": sourceApplication]);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here. "referrer".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup.

Copy link

@didiergarcia didiergarcia left a 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"

@amrgetment
Copy link

Is my issue related?
#133

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

Successfully merging this pull request may close these issues.

6 participants