cordova-plugin-installreferrer

5.0.0 • Public • Published

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

Package Sidebar

Install

npm i cordova-plugin-installreferrer

Weekly Downloads

0

Version

5.0.0

License

ISC

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • dualh