m1crdy
m1crdy

Reputation: 1401

Get identifier of a smartphone

I´m writing an app where i a user can store a text in a SQL Database. This is send via AJAX to my server and via PHP to the SQL database. There should be a restriction: The user should be able to upload a text only once! I first mentioned the IP, but if you´re online with GPRS (carrier) then multiple devices got the same IP adress.

How can I identify the smartphone, which is accessing the database?

Upvotes: 2

Views: 1387

Answers (1)

m1crdy
m1crdy

Reputation: 1401

I took the DeviceID as a unique itendtifier. In Phonegap you can get it with:

var id = device.uidd; 

Upvotes: 1

Related Questions