Track the user not the Hardware. why ??
To detect an user, we might tract the hardware of the device and if we tract usering getDeviceId().
It fails for many reaons,
1. MAC address also bad.
2. ANDOROID_ID also not reliable and a scary user permission.
** Good Solution : **
The simple solution is to track a UNIQUE INSTALLATION, instead of trying to identify the actual
device. Create a unique identifier when the user opens the app for the first time and save it in a
shared preferences file.
Written by Gautam Basubramanian
Related protips
2 Responses
I guess this tip is useful to other mobile platforms as well. Not necessarily to Android only, but also if you want to have a cross-platform/cross-hardware UUID.
br
over 1 year ago
·
Thanks
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#