[MOD-2652] AdMob: Support AppTrackingTransparency for iOS 14
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Critical |
Status | Resolved |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Admob |
Labels | n/a |
Reporter | Donovan Lewis |
Assignee | Vikas Goyal |
Created | 2020-06-23T14:29:26.000+0000 |
Updated | 2020-11-06T17:46:15.000+0000 |
Description
Add support for AppTrackingTransparency for iOS 14: https://developer.apple.com/documentation/apptrackingtransparency
This seems to be required now for any apps that will have ads displayed in them. I'm sure we will need to update the Admob module to go along with this once they figure out how they are going to handle it.
PR: https://github.com/appcelerator-modules/ti.admob/pull/100
I'm going to try out this PR. Is there a way to invoke the AppTrackingTransparency alert to come up when you want to? So you could ask at first launch and then ask again at a later date if it was turned off?
The 'requestTrackingAuthorization' function is used to invoke the AppTrackingTransparency alert to come up when you want to. The system remembers the user’s choice and doesn’t prompt again unless a user uninstalls and then reinstalls the app on the device. so if user has selected any option it will not show the alert again. Note, when calling 'requestTrackingAuthorization', the NSUserTrackingUsageDescription key must be in '
We need to update this module again. Google has just published its official iOS 14 version of Admob version 7.64.0 that has support for AppTrackingTransparency included as well as support for SKAdNetwork which is extremely important also. https://developers.google.com/admob/ios/rel-notes
From Google: In preparation for the iOS 14 consumer launch, we recently announced updated GMA and IMA Software Developer KIts (SDKs) that include support for iOS 14 specific features. You’ve hopefully been seeing our recommendations, best practices and announcements around supporting recent app privacy and user consent changes. I wanted to highlight some steps you might want to take. HIGHEST PRIORITY STEPS Update to GMA SDK iOS v7.64 (AdMob, AdManager) or later and/or IMA SDK iOS v3.12.1 or later. Call the new AppTrackingTransparency (ATT) Framework permission . Add the listed SkAdNetworks for Google (AdMob, AdManager). RECOMMENDED STEPS Providing users with a message before calling the ATT Framework permission is advisable to convey the value of your app. You can elect to: Develop your own explainer message preceding the permission request. Use Funding Choices with the UMP SDK for the explainer message. We are committed to continue to develop this message solution, so utilizing this feature can save development time and effort. While an explainer via Funding Choices won’t be ready until September, you can get a head start by creating a Funding Choices account directly through the AdMob or Ad Manager front-end. After setting up Funding Choices and integrating the UMP SDK for iOS (AdMob, AdManager), you can create an IDFA message in Funding Choices and publish it. This will trigger the ATT alert. Once the explainer message functionality is available around September, the explainer message will automatically appear ahead of the iOS 14 ATT alert. You can find more guidance on preparing for iOS 14 changes in the AdMob Help Center and the AdManager Help Center. Please stay tuned for more announcements on how Google plans to help in the coming months.
With SDK 9.2.1.GA the below errors started for me when trying to build.