Skip to content

Android リファラー

Google Play Install Referrer

Androidで

Google Playインストールリファラー getReferrer() Android上で、

const result = await InstallReferrer.getReferrer();
console.log(result.referrer);
console.log(result.clickTimestampSeconds);
console.log(result.installBeginTimestampSeconds);
console.log(result.googlePlayInstantParam);
フィールド説明
platform常に android.
referrerRaw Play インストールリファラーストリング。
clickTimestampSecondsクライアント側リファラークリックタイムスタンプ(秒)。
installBeginTimestampSecondsクライアント側インストール開始タイムスタンプ(秒)。
googlePlayInstantParamユーザーがアプリのインスタントエクスペリエンスを起動したかどうか。
  • Google Playからアプリをインストールする必要があります。
  • Play Storeのバージョンがインストールリファラー サービスをサポートしている必要があります。
  • Android ランタイム パーミッションは必要ありません。

エラーのケース

「エラーのケース」

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