Skip to content

Google Play Services SDK not found for app set id! #174

@mkbey

Description

@mkbey

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

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions