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

advertising_id not being picked up in segment context #64

Open
fpun opened this issue Jan 7, 2023 · 2 comments
Open

advertising_id not being picked up in segment context #64

fpun opened this issue Jan 7, 2023 · 2 comments

Comments

@fpun
Copy link

fpun commented Jan 7, 2023

Context
I am trying to send app events from an Android app developed in Flutter to Facebook by using the flutter-segment library.

Config
I have checked that I use Advertising ID on the Play Console in the App Content section
I have added <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> to the manifest

Issue
When running my app locally with Android Studio Emulator in debug mode with "flutter run", advertising_id is surfaced correctly in the segment context object. However when running the app locally in the same conditions but in release mode with "flutter run --release" (or deploying the app to the Play Store), advertising_id is missing from the context.

Am I missing anything?

@AjleyArroyo
Copy link

I have the same problem but clevertap

@AjleyArroyo
Copy link

Context I am trying to send app events from an Android app developed in Flutter to Facebook by using the flutter-segment library.

Config I have checked that I use Advertising ID on the Play Console in the App Content section I have added <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> to the manifest

Issue When running my app locally with Android Studio Emulator in debug mode with "flutter run", advertising_id is surfaced correctly in the segment context object. However when running the app locally in the same conditions but in release mode with "flutter run --release" (or deploying the app to the Play Store), advertising_id is missing from the context.

Am I missing anything?

Add
implementation 'com.google.android.gms:play-services-ads-identifier:16+'' or greater version to the dependencies section of your build.gradle file. You might already have it.

Add the following line in your Proguard settings:
XML

-keep class com.google.android.gms.ads.identifier.** { *; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants