Home Ask Login Register

Developers Planet

Your answer is one click away!

Alexander K. February 2016

swift idForVendor, advertisingIdentifier

Is it possible to get and send advertisingIdentifier and/or idForVendor when some action takes place? For example user push button, and I write something like:

let advertisingIdentifier: NSUUID!
@IBAction func buttonPressed(sender: AnyObject) {
    print("You clicked the button")
    let addId = advertisingIdentifier().UUIDString
    let buttonIsPushedId = "THISBUTTONID"
    //send addId (my advertisingIdentifier) and buttonIsPushedId on some server    

Is it ok with Apple privacy terms?


pseudon February 2016

I'd suggest reading Apple's App Store Review Guidelines, especially the section on Privacy:


In the intro:

If you attempt to cheat the system (for example, ...steal data from users, ...your Apps will be removed from the store and you will be expelled from the developer program.

The Apple Developer Program License Agreement has quite a bit to say about the Advertising Identifier:


Section 1.2:

is to be used solely for advertising purposes

Section 3.3.9:

You may not use analytics software in Your Application to collect and send device data to a third party. Further, neither You nor Your Application will use any permanent, device-based identifier, or any data derived therefrom, for purposes of uniquely identifying a device.

Section 3.3.12:

You and Your Applications (and any third party with whom You have contracted to serve advertising) may use the Advertising Identifier, and any information obtained through the use of the Advertising Identifier, only for the purpose of serving advertising. If a user resets the Advertising Identifier, then You agree not to combine, correlate, link or otherwise associate, either directly or indirectly, the prior Advertising Identifier and any derived information with the reset Advertising Identifier.

Section 3.3.13:

For Applications c

Post Status

Asked in February 2016
Viewed 3,663 times
Voted 7
Answered 1 times


Leave an answer

Quote of the day: live life