amplitude / Amplitude-Kotlin

Amplitude Kotlin SDK
MIT License
27 stars 10 forks source link

fix: do not fetch advertising Id if adid tracking is disabled #125

Closed falconandy closed 1 year ago

falconandy commented 1 year ago

Additional note: in Android-Kotlin default value for limitAdTrackingEnabled is true, in Amplitude-Android - false

Maybe if adid tracking is disabled limitAdTrackingEnabled should be null.

UPD: for some reason IdentifyInterceptTest fail in CI (work locally).

Checklist

justin-fiedler commented 1 year ago

Additional note: in Android-Kotlin default value for limitAdTrackingEnabled is true, in Amplitude-Android - false

Thanks for calling this out. I think this is because ADID usage is no longer recommended, but was at the time of Amplitude-Android's initial release. We probably kept the the legacy SDK as-is for backwards compatibility but changed it in the new SDK along with other breaking changes.

cc @qingzhuozhen

falconandy commented 1 year ago

@justin-fiedler

Can you please try fixing the Identify tests some more pray I really want them to be reliable in CI so we can be confident in releases.

Fixed (removed global mocking from other tests). Some other tests are still unstable but re-run helps.

@Mercy811

Want to confirm that to disable tracking ADID, the usage remains the same but ADID is not fetched by the SDK.

yes, with trackingOptions.disableAdid() the SDK shouldn't fetch ADID

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 1.9.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: