cap-play-install-referrer
v0.0.1
Published
This capacitor plugin captures the referrer value passed when an android app is installed using Play Install Referrer API.
Downloads
27
Maintainers
Readme
cap-play-install-referrer
Only android support this time --Anyone can help with iOS This capacitor plugin captures the referrer value passed when an android app is installed using Play Install Referrer API.
Install
npm install cap-play-install-referrer
npx cap sync
API
GetReferrer()
GetReferrer() => Promise<any>
Returns: Promise<any>
import { CapPlayInstallReferrer } from 'cap-play-install-referrer';
CapPlayInstallReferrer.GetReferrer().then((resp) => {
try {
let data = JSON.stringify(resp);
//data = '{ "referrer": "preetamjakhmolaReferrerCode", "clickTimestamp": 1642830058, "installBeginTimestamp": 1642830060 }';
} catch (e) {
console.log(e);
}
})