Hi all,
Basically, I have some sharing functionality in my app which allows users to share some content they created with up to 3 other devices of any type. I don’t want them sharing with more than this.
They have to sign up using a username and password to create a “share” account that lets them upoad content and then an ASP.Net script online checks with an online database that their credentials are correct and then saves the content to the server and returns a unique code the user can give to anyone they want to share their content with.
To ensure only 3 devices are shared with per account, I want to track the device IDs of any device that uses a code to download the content. Each time a new device is used then their “device count” for that account goes down by 1.
However - as I understand it, because of their privacy policy, Apple now reject apps where we try to track people’s device ID. Is this right?
If so, is there any other totally unique piece of information I can use to ensure that more than 3 devices aren’t used to download any one code…? I don’t want the people downloading the shared content to have to sign up - they should just be able to enter a code.
I know I could only allow 3 downloads maximum but this wouldn’t allow for people wanting to re-download in the future.
Thanks,
Ian
From the Corona Docs…
On iOS, “deviceID” returns a “unique” id for the device. Per Apple’s policies, on iOS 6 and later, “deviceID” returns a MD5 hash of the device’s “identifierForVendor” (see below); on iOS 5 it returns a MD5 of a GUID (Globally Unique Identifier) that is unique for each app install.
On Android, if your app uses the “android.permission.READ_PHONE_STATE” permission, the following will be returned:
- IMEI for GSM phones.
- MEID or ESN for CDMA phones.
- The operating system’s unique ID for devices that are not phones.
If your Android app does not use the “android.permission.READ_PHONE_STATE” permission, then the operating system’s unique ID will be returned for all devices. Note that the operating system’s unique ID may change after re-installing the operating system on the device.