Android リファラ
インストールステップとフルマークダウンガイドのセットアッププロンプトをコピー
Google Play Install Referrer
Google Play Install Referrerのセクション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 |
|---|---|
platform | Always android. |
referrer | Raw Play install referrer string. |
clickTimestampSeconds | Client-side referrer click timestamp in seconds. |
installBeginTimestampSeconds | Client-side install begin timestamp in seconds. |
googlePlayInstantParam | Whether the user launched the app’s instant experience. |
Requirements
Section titled “Requirements”- 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.
Error Cases
エラーのケース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 プラグインの代替の製品ワークフローについては、