Skip to content

Android リファラー

GitHub

Google Play インストールリファラー

Google Play インストールリファラーのセクション

Android上で getReferrer() Google Play インストールリファラー サービスに接続し、プレイストア インストール レコードからデータを返します。

const result = await InstallReferrer.getReferrer();
console.log(result.referrer);
console.log(result.clickTimestampSeconds);
console.log(result.installBeginTimestampSeconds);
console.log(result.googlePlayInstantParam);
Field説明
platform常に android.
referrerインストールの招待者文字列を直接取得します。
clickTimestampSecondsクライアント側の招待者クリックタイムスタンプ(秒単位)
installBeginTimestampSecondsクライアント側のインストール開始タイムスタンプ(秒単位)
googlePlayInstantParamユーザーがアプリのインスタントエクスペリエンスを起動したかどうか
  • アプリがGoogle Playからインストールされている場合にのみ、実際のインストールの招待者データを取得できます。
  • Play StoreのバージョンがInstall Referrerサービスをサポートしている場合にのみ、デバイスが必要です。
  • Androidランタイムの許可は必要ありません。

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

Android リファラーから続けて

セクション:Android リファラーから続けて

Android リファラーを使用している場合 Android リファラー native プラグインの作業を計画するために使用している場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-install-referrer native 能力のために @capgo/capacitor-install-referrer for the native capability in Using @capgo/capacitor-install-referrer, Capgo プラグイン ディレクトリの製品ワークフロー Capgo Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, __CAPGO_KEEP_0__ プラグイン __CAPGO_KEEP_1__ プラグインの追加または更新 プラグインの追加または更新の詳細については、