Yes, you can use device token to register user because if you delete the app & re-install it again then it will give you the same device-token same as previous.
code:
NSString *Device_id=[[[UIDevice currentDevice]identifierForVendor]UUIDString];
質問
Can I use the DeviceToken to register user in my server but not for push notification service.
Is it possible to fetch DevToken without using push notification delegate method?
Thanks
解決
Yes, you can use device token to register user because if you delete the app & re-install it again then it will give you the same device-token same as previous.
code:
NSString *Device_id=[[[UIDevice currentDevice]identifierForVendor]UUIDString];