Is there an info.plist key to use the advertising id

Is there an entry for itsappusesnonexemptencryption ( ITSAppUsesNonExemptEncryption export during internal testing? ), But is there one for the advertising identifier, and if so, what is it?

+5
source share
2 answers

No, there is nothing related to the advertising identifier in info.plist.

When you submit the app to the App Store, you will need to check some things to tell Apple that you are using it with an identifier. More on this here:

https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html

Here’s how to get the advertising ID:

Goal C -

@import AdSupport;

...

NSString * adId = [[[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

Swift -

import adsupport

... let myIDFA: String? // Check if Advertising Tracking is Enabled if ASIdentifierManager.shared().isAdvertisingTrackingEnabled { // Set the IDFA myIDFA = ASIdentifierManager.shared().advertisingIdentifier.uuidString } else { myIDFA = nil } 

(updated to Swift 3.0)

+4
source

No, but you can use github.com/fastlane to fully automate the delivery process (including the stupid IDFA radio channel blocker).

+3
source

All Articles