简体   繁体   中英

How to request App Tracking Transparency authorization in Flutter for Admob Native Ads displayed on IOS 14?

With iOS 14, iPadOS 14, and tvOS 14, you will need to receive the user's permission through the AppTrackingTransparency framework to track them or access their device's advertising identifier. Tracking refers to the act of linking user or device data collected from your app with user or device data collected from other companies' apps, websites, or offline properties for targeted advertising or advertising

How to request App Tracking Transparency authorization in Flutter for Admob Native Ads displayed on IOS 14? Will the app continue ads serving to the user if a user doesn't accept it?

I use admob_flutter which allows you to do that by calling await Admob.requestTrackingAuthorization()

If user doesn't accept then the app will continue to serve non-personalized ads. For more details check this answer

You can user app_tracking_transparency library to achieve what you want if you don't use admob_flutter library.

Readme file of the library explains all the setup proccess and you can request ATT popup like:

await AppTrackingTransparency.requestTrackingAuthorization()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM