简体   繁体   中英

easiest way to uniquely identify a user of an iphone app

What's the easiest way to uniquely identify a user of an iphone app? I've seen some app only asks for phone number to 'register', isn't that unsafe or is there something I missed?

Got a Q about uniqueIdentifier, does it reset after some sort of reset/format or change of SIM card?

Would a traditional username/email/password be the safer approach?

Thanks.

The easiest way would probably be by device ID :

 UIDevice *myDevice = [UIDevice currentDevice];
 NSString *uniqueIdentifier = [myDevice uniqueIdentifier];

This will uniquely identify the device, not the user.

If you want to identify the user, I would suggest using iTunes/Apple accounts, since users will already have that, and you don't have to mess with phone numbers which aren't applicable to iPods.

Maybe email address and password?

If you use Push Notification the user's device will have a unique token to all communication with your App. Maybe you could pull that token, then just not actually send the notification. Although the user has the option to deny the request, so you'd need a backup.

Unique identifier for an iPhone app

for safari: cookie the user - it works like a normal browser.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM