Answer the question
In order to leave comments, you need to log in
How can individual devices be identified in the world of mobile applications?
I am writing a backend (api) for a mobile application. According to the terms, part of the functionality is available without registration, and part - with registration via social networks / e-mail. However, information from "unregistered" devices must be accumulated on the server (statistics, behavior, user data for recovery).
This raised the question of how to identify individual devices. I myself have nothing to do with mobile development, there are no mobile developers within reach. I thought about taking the number of the phone, but the tablets do not have it. It is impossible to strain users by registering immediately.
What are the racially correct options on ios/android?
Answer the question
In order to leave comments, you need to log in
In ios, it is possible to organize a device-unique identifier. Any ios developer knows how to do this. Make the identifier one of the accepted parameters and accumulate everything on it. And what to transfer there, the front-end developer will figure it out.
UUID developer.apple.com/library/ios/#documentation/Foundation/Reference/NSUUID_Class/Reference/Reference.html#//apple_ref/occ/clm/NSUUID/UUID
You can also do how the session is organized in the browser - generate a unique key and use it to associate the client with the session. As written above for iOs, you can use getUUIDBytes, for Android UUID.randomUUID().
for Windows Phone, you can also try to get the device ID, offhand stackoverflow.com/questions/4486961/get-the-id-of-the-current-windows-phone-7-device
How to get Device ID?
One needs to always query the MAC of the same interface, of course. I guess the best bet is with en0. The MAC is always present, even if the interface has no IP/is down.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question