Apple ID retrieved from download application in Cocoa Touch

Hi I'm working on an iphone application that needs to support a somewhat unique identifier for download. Is there a way to get either the Apple identifier used to download the application, or another identifier that I can use to associate all devices with this download with the remote database / service?

Basically, I want one instance of my custom data to sit on any device associated with a specific Apple ID. If iTunes signs any downloadable application, using this checksum will also be an option.

Any thoughts?

+3
source share
3 answers

If you use IAP (in App Purchase), you can associate a user's purchase with one receipt and check receipt to Apple servers.

For purchases on the App Store, unlike the IAP, Apple allows and to a large extent forces the developer to allow their App Store applications to work equally on as many devices as the client can host their iTunes account, without information available to the app about whether This is the first customer or his nth. If this business model does not work for you, do not place the application for sale in the application store.

+3
source

As far as I know, there is absolutely no way to access the currently signed Apple ID on the device. Your only real option is to save your own username / login, which the user must enter on each device.

0
source

I do not believe that you can get an Apple ID, but you can get the current device identifier using the UIDevice of the uniqueIdentifier method.

For instance:

UIDevice *ourDevice = [UIDevice currentDevice]; NSString *uniqueIdentifier = [ourDevice uniqueIdentifier]; 

However, you should note the following (highlighted mine) from the above related document:

A unique device identifier (sometimes abbreviated as UDID for a unique device identifier) ​​is a hash value made up of various hardware identifiers, such as a serial number. It is guaranteed to be unique for each device. UDID is regardless of the device name. For devices that use a SIM (Subscriber Identity Module), the UDID is independent of the SIM card.

To ensure the safety and privacy of users, you should not publicly associate a device with a unique identifier with a user account.

You can use the UDID, in conjunction with the application user ID, to identify specific data applications on your server.

0
source

Source: https://habr.com/ru/post/898606/


All Articles