Documentation

Build for the Apple Kids Category

Remove the AdSupport framework from your iOS and tvOS builds.
Read time 1 minuteLast updated 15 days ago

Apps in the Apple App Store Kids Category (Apple documentation) might be rejected if they include the AdSupport framework. Starting in version 5.4, Unity In-App Purchasing (IAP) includes AdSupport in iOS and tvOS builds by default to read the advertising identifier (IDFA). As a result, App Store review can reject a Kids Category app that uses Unity IAP 5.4 or later. Earlier versions of Unity IAP don't include AdSupport.
To remove AdSupport from your build, add the
IAP_DISABLE_IDFA
scripting define symbol to your project. When set, iOS and tvOS builds leave out the AdSupport framework and the code that reads the advertising identifier (IDFA).
Important
Developers remain responsible for their own child-directed designation and for any other SDKs in their app. This define removes the IDFA only. It doesn't change other data that Unity IAP collects, and it doesn't guarantee App Review approval. For details on what the SDK collects, refer to Privacy overview.

Prerequisites

  • Unity IAP 5.5.0 or later. If your app uses Unity IAP 5.4, upgrade to 5.5.0 or later to remove AdSupport.

Add the scripting define symbol

  1. Go to Edit > Project Settings > Player.
  2. Select the iOS tab.
  3. In Other Settings > Script Compilation, add
    IAP_DISABLE_IDFA
    to Scripting Define Symbols.
  4. Select Apply.
  5. If you build for tvOS, repeat steps 2 to 4 on the tvOS tab.
Your next iOS or tvOS build doesn't include the AdSupport framework or the code that reads the IDFA.