Google User Messaging Platform (UMP) SDK gdpr choices. (ONLY Android)
This plugin retrieve the choices made by the user via the Google UMP.
The management of the privacy message via Google UMP is not the subject of this plugin, therefore it must be managed in another way.
cordova plugin add https://github.com/MrRotella/cordova-plugin-gdpr-choices.git
cordova plugin add https://github.com/MrRotella/cordova-plugin-gdpr-choices.git --variable PREF_VERSION=1.2.0
- isGdpr (promise)
cordova.Gdpr.isGdpr()
- Return JSON object:
{ success: true/false (false cannot check), value: -1/0/1 (-1 cannot check,0 Gdpr not applies,1 if Gdpr applies), message }
- Return JSON object:
- canShowAds (promise)
cordova.Gdpr.canShowAds()
- Return JSON object:
{ success: true/false (false cannot check), value: true/false, message }
- Return JSON object:
- canShowPersonalizedAds (promise)
cordova.Gdpr.canShowPersonalizedAds()
- Return JSON object:
{ success: true/false (false cannot check), value: true/false, message }
- Return JSON object: