C
C
ChemAli2013-02-12 13:18:48
Android
ChemAli, 2013-02-12 13:18:48

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

5 answer(s)
H
hybridcattt, 2013-02-12
@hybridcattt

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.

E
Egor Merkushev, 2013-02-12
@egormerkushev

UUID developer.apple.com/library/ios/#documentation/Foundation/Reference/NSUUID_Class/Reference/Reference.html#//apple_ref/occ/clm/NSUUID/UUID

S
serso, 2013-02-12
@serso

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().

N
Nikolai Turnaviotov, 2013-02-12
@foxmuldercp

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

X
xmoonlight, 2013-02-12
@xmoonlight

How to get Device ID?


1. Android: here
2. iOS (get mac): here
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.

3. Windows Phone (7,8): here
4. Just for WEB:
hash based on timestamp, ip and salt is put into browser storage (COOKIES and Local Storage (HTML5) ).
If there is a string in one of the storages, then it is taken as an ID; if not found anywhere, then it is created as a new ID.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question