cordova-plugin-installreferrer
v5.0.0
Published
This plugin is used for get the information sent from Play Store after install app
Downloads
3
Maintainers
Readme
cordova-plugin-installreferrer
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