메뉴로 바로가기

@capgo/background-geolocation

Capacitor 앱을 위한 정확한 배경 위치 추적, 네이티브 지오 펜스 진입/이탈 이벤트 및 전환 웹 훅.

__CAPGO_KEEP_0__ 앱이 전면 또는 후면에서 정확한 위치 업데이트, iOS 및 Android에서 원시 circular 지연 경계, 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.

  • start - 활성 위치 추적을 정리합니다.
  • stop - 사용자에게 권한이 필요할 때 위치 설정으로 이동시킵니다.
  • openSettings - 사용자가 계획된 경로에서 벗어났을 때 원시 음성 재생.
  • setPlannedRoute - 원시 지연 경계 기본값을 구성하고 옵션 전환 웹 훅 전달을 구성합니다.
  • setupGeofencing - iOS 또는 Android의 원시 circular 지연 경계 영역을 식별자로 모니터링합니다.
  • addGeofence - 등록된 지연 경계 중 하나 또는 모두 중지합니다.
  • removeGeofence / removeAllGeofences - 원시层에서 현재 모니터링 중인 지연 경계 식별자 목록을 표시합니다.
  • getMonitoredGeofences 기본 기능
  • geofenceTransition listener - 앱이 활성화된 동안 입장 및 퇴장 이벤트를 받습니다.
  • geofenceError listener - 전환 이벤트 형태를 변경하지 않고 네이티브 모니터링 오류를 처리합니다.

Public API

API
Method설명
startStreams 정확한 전면 또는 배경 위치 업데이트.
stopLocation updates를 중지합니다.
openSettings장치의 위치 설정 페이지를 열어줍니다. 사용자에게 위치 서비스를 활성화하거나 권한을 조정하도록 안내할 때 유용합니다.
setPlannedRoute사용자가 계획된 경로에서 벗어났을 때 네이티브 사운드 재생합니다.
setupGeofencingGeofence 기본값을 구성하고 optional 네이티브 전환 POST 전달을 설정합니다.
addGeofenceiOS 및 Android에서 circular geofence를 모니터링합니다.
removeGeofence__CAPGO_KEEP_0__을 식별자로 한 지오펜스 모니터링을 중단합니다.
removeAllGeofences__CAPGO_KEEP_0__ 플러그인으로 등록된 모든 지오펜스를 모니터링 중단합니다.
getMonitoredGeofences현재 네이티브 레이어에서 모니터링 중인 식별자를 반환합니다.
addListener('geofenceTransition', ...)앱이 살아 있는 동안 지오펜스 진입 및 출구 이벤트를 받습니다.
addListener('geofenceError', ...)앱이 살아 있는 동안 네이티브 지오펜스 모니터링 오류를 받습니다.
getPluginVersion네이티브 Capacitor 플러그인 버전을 가져옵니다.

이 참조는 src/definitions.ts 에서同步합니다. capacitor-background-geolocation.

@capgo/background-geolocation에서 계속 진행하세요.

@capgo/background-geolocation

@__CAPGO_KEEP_0__/background-geolocation @capgo/background-geolocation @__CAPGO_KEEP_0__/background-geolocation @capgo/background-geolocation @capgo/background-geolocation @Capgo Plugin Directory @Capgo Plugin Directory @Capacitor Plugins by @Capgo for the implementation detail in Capacitor Plugins by Capgo, @__CAPGO_KEEP_0__ background-geolocation을 사용하여 native 플러그인 작업을 계획하고 있습니다. @__CAPGO_KEEP_0__ background-geolocation을 사용하여 native 플러그인 작업을 계획하고 있습니다. Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternatives 제품 워크플로우를 위한 대안입니다.