invertase / react-native-google-mobile-ads

React Native Google Mobile Ads enables you to monetize your app with AdMob.
https://docs.page/invertase/react-native-google-mobile-ads
Other
629 stars 121 forks source link

feat: add method to check if consent for purpose 1 was given #522

Closed dylancom closed 5 months ago

dylancom commented 5 months ago

Description

This feature makes it possible to only show the ATT alert if consent (for Purpose 1) was given. As advised by: https://developers.google.com/admob/ios/privacy/gdpr#frequently_asked_questions

See also: https://developers.google.com/admob/ios/privacy/gdpr#how_to_read_consent_choices

docs-page[bot] commented 5 months ago

To view this pull requests documentation preview, visit the following URL:

docs.page/invertase/react-native-google-mobile-ads~522

Documentation is deployed and generated using docs.page.

mikehardy commented 5 months ago

:tada: This PR is included in version 12.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

mikehardy commented 5 months ago

Overlap/duplication here with https://github.com/zoontek/react-native-permissions but...does seem to be a vital part of this module as well, seems okay

dylancom commented 5 months ago

@mikehardy I'm not sure what do you mean with overlap/duplication? This PR doesn't add the code to do the ATT request, this only adds code so you can check if "Consent Purpose 1" was given by the user. Which then let's you decide if you are going to show the ATT alert at all. (As per Google's advice you don't need to show the ATT alert if consent was denied in the Google UMP form.