Skip to content

platogo/cordova-plugin-usercentrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cordova-plugin-usercentrics

This plugin implements UserCentrics SDK features for Cordova applications.

how to install

Install it via the Cordova CLI.

cordova plugin add https://github.com/platogo/cordova-plugin-usercentrics.git

note: currently supports only Android

usage

initialize usercentrics

cordova.plugins.UserCentrics.initialize(
  function (success) {
    console.log(success);
  },
  function (error) {
    console.error(error);
  }
);

cause consent banner to show

cordova.plugins.UserCentrics.isReady(
  function (success) {
    console.log(success);
  },
  function (error) {
    console.error(error);
  }
);

clear user session

cordova.plugins.UserCentrics.clearUserSession(
  function (success) {
    console.log(success);
  },
  function (error) {
    console.error(error);
  }
);

get google consents

cordova.plugins.UserCentrics.getGoogleConsents(
  function (success) {
    console.log(success);
  },
  function (error) {
    console.error(error);
  }
);

License

this repo uses the ISC license

About

cordova plugin for usercentrics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published