Skip to content

RobinCK/CapPlayInstallReferrer

 
 

Repository files navigation

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>


## EXAMPLE // Only android support this time --Anyone can help with iOS
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);
  }
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.6%
  • Swift 13.8%
  • Ruby 8.7%
  • TypeScript 7.3%
  • Objective-C 6.2%
  • JavaScript 4.4%