概要
概要__CAPGO_KEEP_0__を使用します。アプリが前景または背景で正確な位置情報を必要とする場合、またはiOSおよびAndroidでネイティブの円形のジオフェンス、WebViewが停止したときにバックエンドでジオフェンスのトランジションを提供します。 @capgo/background-geolocation when your Capacitor app needs precise location updates in the foreground or background, native circular geofences on iOS and Android, and backend delivery for geofence transitions when the WebView is suspended.
Core Capabilities
- 前景または背景で正確な位置情報をストリームします。start- 有効な位置追跡をクリーンに停止します。stop- パーミッションの注意が必要なときにユーザーをネイティブの位置設定に送信します。openSettings- ユーザーが計画されたルートから逸脱したときにネイティブの音を再生します。setPlannedRoute- ネイティブのジオフェンスのデフォルトを設定し、オプションのトランジションWebhook配信を有効にします。setupGeofencing- iOSまたはAndroidの円形のジオフェンス地域を識別子で監視します。addGeofence- 登録済みのジオフェンスの1つまたはすべてを停止します。removeGeofence/removeAllGeofencesSection titled “Core Capabilities”getMonitoredGeofences- 現在監視中のリージョン識別子をリストします。geofenceTransitionlistener - アプリがアクティブなときにエンターとエクィットイベントを受信します。geofenceErrorlistener - トランジションイベントの形状を変更せずにネイティブモニタリングエラーを処理します。
Public API
セクション「Public API」| メソッド | 説明 |
|---|---|
start | 正確な前景または背景の位置情報の更新をストリームします。 |
stop | 位置情報の更新を停止します。 |
openSettings | デバイスの位置設定のページを開きます。ユーザーに位置サービスを有効化またはパーミッションを調整するように案内するのに役立ちます。 |
setPlannedRoute | ユーザーが計画ルートから逸脱したときにネイティブサウンドを再生します。 |
setupGeofencing | ジオフェンスのデフォルトを設定し、オプションのネイティブトランジションPOST配信を構成します。 |
addGeofence | iOSおよびAndroidで円形のジオフェンスを監視します。 |
removeGeofence | __CAPGO_KEEP_0__を識別子で指定して監視を停止します。 |
removeAllGeofences | __CAPGO_KEEP_0__で登録されたすべてのジオフェンスの監視を停止します。 |
getMonitoredGeofences | ネイティブ層で現在監視している識別子を取得します。 |
addListener('geofenceTransition', ...) | アプリが稼動中のときにジオフェンスの入出場イベントを受け取ります。 |
addListener('geofenceError', ...) | アプリが稼動中のときにネイティブジオフェンスの監視エラーを受け取ります。 |
getPluginVersion | ネイティブCapacitorプラグインのバージョンを取得します。 |
真実の源
「真実の源」セクションこのリファレンスは src/definitions.ts に capacitor-background-geolocation.
Keep going from @capgo/background-geolocation
Section titled “Keep going from @capgo/background-geolocation”背景地理位置から続ける場合 @capgo/background-geolocation 背景地理位置から続けるを使用して Using @capgo/background-geolocation for the native capability in Using @capgo/background-geolocation, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, 背景地理位置から続ける Capgoのプラグインの追加または更新の実装詳細については、 Capacitorエンタープライズプラグインの代替 Capacitorエンタープライズプラグインの製品ワークフローについては、