-
Notifications
You must be signed in to change notification settings - Fork 6
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
Android SDK should autogenerate Users #14
Comments
@winsmith would you be open to a PR on that? How about storing the generated user ID in a SharedPreference specific to TelemetryDeck, similarly to what's done in the Swift library? |
There are several types of identifiers provided by the OS for different uses (e.g. ANDROID_ID, Advertising ID etc). Based on https://developer.android.com/identity/user-data-ids and the fact we support API 21, it seems best if we generate and persist a stable identifier ourselves. For example, a new
Note: What we get to:
Notes on version support:
Let me know if you have any thoughts or comments @winsmith @Jeehut |
@kkostov I like the suggested approach, it seems similar to what is done in the Swift SDK today. And I find it important that the solution works without Google Play Services – TelemetryDeck should not require Google, a company known for tracking lots of data. The only difference for users seems to be that they can delete the data via the "Clear Data" action in their app settings, which doesn't exist on iOS. Do you have any knowledge about how common it is that users do this? Are there apps that "optimize" things for users that can do this as well which some users are using in an automated way? Or do users always have to manually do this through settings? |
Sounds fantastic! |
Users may choose to do this if they want to reset an app to it's "factory" settings, or to free disk space on their device. Some OS may offer tools to perform this automatically, but I'm not aware of this being very common. |
When no clientUser is specified, the Kotlin SDK should autogenerate a user ID randomly and use that. The user ID should saved on device so it is always the same. On iOS, we use identifierForVendor for this, but AFAIK there is no such thing on Android, right? So we'd have to implement our own using e.g. SharedPreference or other applicable tech.
The text was updated successfully, but these errors were encountered: