I am working with an application in which when the application is registered with the device,i want to get the information in database that from which device it is registered ? Is there any way by which i can detect that from which device it is registered? Please help me out?
There are several ways to do this:
Using these unique identifiers you may create table at server to identify the device and you will come to know from which device request is generated.
I hope this clears your doubt.
When user register , store his device's UUID
. And you can check for matching UUID
from server everytime user logs in.
NSString *UUID = [[NSUUID UUID] UUIDString];
As @Pooja M. Bohora
said you can create the unique number and then save it into the UIPasteBoard
of device for further use. So that though your application get uninstalled from device you can retrieve that from UIPasteBoard
Check below link
Here let say at the first time u have saved Unique no using key com.companyname.appid
then next time use the same key for getting the unique no.
Also if you get com.companyname.appid
as blank then only create new unique id and send it to server by saving it into UIPasteBoard
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.