From 4375f3f10f96ee202d50a46abf500e76be0790f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= Date: Mon, 12 Jul 2021 07:11:00 +0200 Subject: [PATCH] Only add NSUSerTrackingUsageDescription key if set in game.project Fixes #6 --- docs/index.md | 2 ++ extension-adinfo/manifests/ios/Info.plist | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/index.md b/docs/index.md index a91e65a..d041982 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,6 +31,8 @@ Before requesting advertising info and status on iOS 14 the application must req Apple documentation: https://developer.apple.com/documentation/apptrackingtransparency?language=objc +Note: If this field is omitted the generated `Info.plist` file will not contain a `NSUserTrackingUsageDescription` key and value. + ### register_for_attribution The extension can automatically register the application for ad network attribution using `SkAdNetwork` and the `registerAppForAdNetworkAttribution()` function. Enable this functionality by setting `adinfo.register_for_attribution` to 1 in game.project. diff --git a/extension-adinfo/manifests/ios/Info.plist b/extension-adinfo/manifests/ios/Info.plist index 70deded..ebfe9de 100644 --- a/extension-adinfo/manifests/ios/Info.plist +++ b/extension-adinfo/manifests/ios/Info.plist @@ -2,7 +2,9 @@ +{{#adinfo.tracking_usage_description}} NSUserTrackingUsageDescription {{adinfo.tracking_usage_description}} +{{/adinfo.tracking_usage_description}}