Skip to content

1n3JgKl9pQ6cUMrW/cordova-plugin-gdpr-choices

 
 

Repository files navigation

Cordova Plugin Gdpr Choices (cordova-plugin-gdpr-choices)

Google User Messaging Platform (UMP) SDK gdpr choices.

Install on Cordova

cordova plugin add https://github.com/MrRotella/cordova-plugin-gdpr-choices.git

andoridx preference version

cordova plugin add https://github.com/MrRotella/cordova-plugin-gdpr-choices.git --variable PREF_VERSION=1.2.0

USE

  • 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        
      }
  • canShowAds (promise)
    cordova.Gdpr.canShowAds()
    • Return JSON object:
      {
          success: true/false (false cannot check),
          value: true/false,
          message        
      }
  • canShowPersonalizedAds (promise)
    cordova.Gdpr.canShowPersonalizedAds()
    • Return JSON object:
      {
          success: true/false (false cannot check),
          value: true/false,
          message        
      }

About

This plugin will return the gdpr choices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 76.2%
  • JavaScript 23.8%