Android Referrer
このプラグインのインストール手順とマークダウンガイドを含むセットアップのコピー用テキストをコピーします。
「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 プラグインの代替の製品ワークフローについては