What is the least invasive way to uniquely identify a user or a user's device in Cordova. I've not yet been looking at iOS yet, but it looks like ANDROID_ID
is definitely not unique, which rules out org.apache.cordova.device.Device
's uuid
property.
Specifically, this is for recovering remote user account data in case of a phone- or application-data reset and I am trying to figure out how to do this with the fewest app permissions and the smallest cognitive load on the user.
Currently, I think the only routes I have are:
- Ask user for email
- Use third-party authentication (OpenID, Facebook, Twitter, Weibo, etc.)
- Ask user for a uname/password