cordova-plugin-installreferrer

This plugin is used for get the information sent from Play Store after install app

Usage no npm install needed!

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

README

cordova-plugin-installreferrer

NPM Version NPM Downloads

This plugin is used for get the information sent from Play Store after install app

Supported platforms

  • Android

Installation

  • From cordova plugins registry: cordova-plugin-installreferrer
  • From github repository: cordova plugin add https://github.com/DualH/cordova-plugin-installreferrer.git

First of all

Add InstallReferrer to modules and providers

Usage

import { InstallReferrer } from 'install-referrer';

...

contructor(private _installReferrer: InstallReferrer) {
  this._installReferrer.getReferrer()
  .then(data => {
    // data is a array with all parameters received
  })
  .catch(err => {});
}

Test

In console

$ adb shell
$ am broadcast -a com.android.vending.INSTALL_REFERRER -n <package-name>/cordova.plugin.installreferrer.Receiver --es referrer "test_referrer=test&test_referrer1=test"

Credits

Currently maintained by @DualH

Created by @DualH - Donate with PayPal