Skip to content

Android Referrer

GitHub

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

Android の場合、

Google Play インストール リファラー サービスに接続し、Play Store のインストール レコードからデータを取得します。 getReferrer() Includes install, sync, and the source markdown guide.

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

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

Android リファラーから続けてください。

「Android リファラーから続けてください」のセクション

Capacitorを使用している場合 Android Referrer Capacitorを使用している場合、@__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-install-referrerを使用して接続してください。 Using @capgo/capacitor-install-referrer Capacitorのインストールリファララー機能の使用のために@capgo/capacitor-install-referrer Capgo プラグインディレクトリ Capacitorの製品ワークフローについては、Capgo プラグインディレクトリ Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, プラグインの追加または更新 プラグインの追加または更新の実装詳細については、 Ionic Enterprise プラグインの代替 Ionic Enterprise プラグインの代替の製品ワークフローについては