cordova-plugin-intenthelper

deal with android intent in cordova

Usage no npm install needed!

<script type="module">
  import cordovaPluginIntenthelper from 'https://cdn.skypack.dev/cordova-plugin-intenthelper';
</script>

README

intenthelper

cordova-plugin-intenthelper

Usage

Install the plugin:

cordova plugin add cordova-plugin-intenthelper --save

Send broadcast intent:

intenthelper.sendBroadcast('com.xzy.abc.ACTION_NAME',
  { extraName1: 'extraValue1', extraName2: 'extraValue2' })

Get ads info:

intenthelper.getAdsInfo(
  function (info) {
    // now get info.adsid and info.adslimittracking
  },
  function (error) {

  }
)

Check if a package is installed or not:

intenthelper.checkPackage('com.awesome.pkg', function (installed) {
  // installed is boolean
})