【问题标题】:Is there an info.plist key for advertising identifier use是否有用于广告标识符使用的 info.plist 键
【发布时间】:2016-09-20 23:13:00
【问题描述】:

它的appusesnonexemptencryption (ITSAppUsesNonExemptEncryption export compliance while internal testing?) 有一个条目,但广告标识符是否有一个条目,如果有,它是什么?

【问题讨论】:

  • 如果您觉得有用,请将答案标记为已接受。谢谢

标签: ios info.plist


【解决方案1】:

不,但您可以使用 Felix Krause 的 https://fastlane.tools 来完全或部分自动化整个交付过程(包括传递这个愚蠢的 IDFA 单选按钮拦截器等)。

【讨论】:

    【解决方案2】:

    不,info.plist 中没有任何与广告标识符相关的内容。

    当您将应用程序提交到 App Store 时,您需要检查一些事项,以便通知 Apple 您正在使用该标识符。有关此处的更多详细信息:

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

    以下是检索广告标识符的方法:

    目标 C -

    @import 广告支持;

    ...

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

    斯威夫特 -

    导入广告支持

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

    (更新到 Swift 3.0)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-29
      • 2015-10-05
      • 2014-06-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-10
      • 2014-05-23
      • 2013-11-26
      相关资源
      最近更新 更多