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

fix(sdk): Remove use of android id as unique identifier #2

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

Erebe42
Copy link
Contributor

@Erebe42 Erebe42 commented Jul 19, 2024

I choose to remove the use of ANDROID_ID to follow the recommandation and the real use.

First, ANDROID_ID is always returning a constant, but is a mean to fetch the real unique ID.
(cf https://stackoverflow.com/questions/26244512/android-provider-settings-secure-android-id-returns-android-id)

By using the solution on this stackoverflow post, we have a warning cause the use of this method is not recommanded.
We should follow this documentation:
https://developer.android.com/identity/user-data-ids

And that is already done by using the google or amazon advertising ID.
So the fallback, if the client don't implement either of those library, is to generate a random string and store it.

@Erebe42 Erebe42 requested a review from vmarchaud July 19, 2024 12:09
@Erebe42 Erebe42 self-assigned this Jul 19, 2024
@Erebe42 Erebe42 force-pushed the fix/remove-android-id branch 3 times, most recently from 382f32a to 7db1a9c Compare July 19, 2024 12:27
@Erebe42 Erebe42 force-pushed the fix/remove-android-id branch from 7db1a9c to 4a86405 Compare July 19, 2024 12:30
@Erebe42 Erebe42 merged commit dee71ab into main Jul 19, 2024
1 check passed
@Erebe42 Erebe42 deleted the fix/remove-android-id branch July 19, 2024 12:38
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

Successfully merging this pull request may close these issues.

2 participants