Skip to content

Commit

Permalink
Only add NSUSerTrackingUsageDescription key if set in game.project
Browse files Browse the repository at this point in the history
Fixes #6
  • Loading branch information
britzl committed Jul 12, 2021
1 parent a61d40c commit 4375f3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<key>NSUserTrackingUsageDescription</key>` 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.
Expand Down
2 changes: 2 additions & 0 deletions extension-adinfo/manifests/ios/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
{{#adinfo.tracking_usage_description}}
<key>NSUserTrackingUsageDescription</key>
<string>{{adinfo.tracking_usage_description}}</string>
{{/adinfo.tracking_usage_description}}
</dict>
</plist>

0 comments on commit 4375f3f

Please sign in to comment.