cordova-install-referrer-api

0.0.1 • Public • Published

Cordova Play Install Referrer API

This plugin captures the referrer value passed when an android app is installed using Play Install Referrer API.

Install

cordova plugins add cordova-install-referrer-api

Usage

cordova.plugins.referrer.get().then((referrer) => {
    console.log(referrer);
    
    // Result:
    // {
    //     clickTimestamp: 0,
    //     installBeginTimestamp: 0,
    //     referrer: "utm_source=google-play&utm_medium=organic"
    // }    
}).catch((error) => {
    console.error(error);
    
    // Result:
    // {
    //     error: 1
    // }
});

Package Sidebar

Install

npm i cordova-install-referrer-api

Weekly Downloads

125

Version

0.0.1

License

MIT

Unpacked Size

4.63 kB

Total Files

5

Last publish

Collaborators

  • byorty