メニューに進む

Android リファラ

GitHub

Androidの場合 getReferrer() Google Play Install Referrerサービスに接続し、Play Storeインストールレコードからデータを返します。

const result = await InstallReferrer.getReferrer();
console.log(result.referrer);
console.log(result.clickTimestampSeconds);
console.log(result.installBeginTimestampSeconds);
console.log(result.googlePlayInstantParam);
フィールドDescription
platformAlways android.
referrerRaw Play install referrer string.
clickTimestampSecondsClient-side referrer click timestamp in seconds.
installBeginTimestampSecondsClient-side install begin timestamp in seconds.
googlePlayInstantParamWhether the user launched the app’s instant experience.
  • The app must be installed from Google Play for real install referrer data.
  • The device must have a Play Store version that supports the Install Referrer service.
  • No Android runtime permission is required.

Play Store サービスが利用できない、サポートされていない、結果を返す前に切断された、または予期しない応答を返す場合、プラグインは拒否されます。

Android リファラーから続ける

Android リファラーから続ける

あなたが Android リファラー を使用している場合 Using @capgo/capacitor-install-referrer for the native capability in Using @capgo/capacitor-install-referrer, Using @Capgo/__CAPGO_KEEP_1__-install-referrer for the product workflow in Capgo Plugin Directory, Using @Capacitor/Capgo-install-referrer Capacitor プラグインの実装詳細については、Capgo で確認してください。 プラグインの追加または更新 __CAPGO_KEEP_0__ プラグインの実装詳細については、プラグインの追加または更新、 Ionic Enterprise プラグインの代替 Ionic Enterprise プラグインの代替の製品ワークフローについては、