I am using jwt token. when a user logged in, I save the token on the database. when the same user logged in on another device another token is saved. So when the app is uninstalled or data is cleared, each time new token is generated. so memory is used. So if there is any way to identify each device on ios. android we can identify each device using device_id or did. In ios, we don't have anything unique. Is there is any way to identify the device
Asked
Active
Viewed 372 times
1 Answers
0
in iOS you have identifierForVendor https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor It is reset every time you delete all the apps from a vendor.
In Android, you can use Unique ID of Android device
Please mind that if you are mapping token with a device, the user can only be logged in one device.
tspentzas
- 178
- 1
- 10
-
@tspenzas User can be logged in multiple devices with the same account. Is there is any other way it can be done . – nithish albin Oct 12 '18 at 12:29
-
Yes but if you log out in one, it will be long out everywhere. – tspentzas Oct 12 '18 at 13:05