-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Expected Behavior
Expecting to be able to disable adid
and appSetId
in TrackingOptions
when initializing Amplitude and expect events to show in my Production environment
Current Behavior
- I get this warning
Google Play Services SDK not found for app set id!
- No events show up for my project.
apiKey
is accurate
Possible Solution
- Link to Flutter issues Google Play Services SDK not found for app set id!
- Link to PR for #125
- Believe like the PR above, we could add a param in
AndroidContextProvider
forshouldFetchAppSetId
or something...looks like in that init block it always runs
Steps to Reproduce
- This is an MDM'd build and we have none of the Play Service dependencies:
com.google.android.gms
- I've tried combinations of custom user/device ids but run into the same warning
- We have a sister project for lower environments (dev/test) and do not run into this warning...prod project has this issue though
private val trackingOptions = TrackingOptions().disableAdid().disableAppSetId()
private val amplitude = Amplitude(
Configuration(
apiKey = apiKey,
context = context,
flushIntervalMillis = 30000,
flushEventsOnClose = true,
flushQueueSize = 30,
flushMaxRetries = 5,
useBatch = true,
identifyBatchIntervalMillis = 30000L,
useAppSetIdForDeviceId = false,
useAdvertisingIdForDeviceId = false,
newDeviceIdPerInstall = false,
trackingOptions = trackingOptions,
locationListening = false,
),
).setUserId(customerUserId).setDeviceId(customDeviceId)
Environment
- Device: Tablet, API 29, Android 10.0
Metadata
Metadata
Assignees
Labels
No labels