background-geolocation
v0.0.2
Published
This plugin tracks current location when the app is open or is in background
Downloads
2
Readme
geolocation-service
This plugin tracks current location when the app is open or is in background
Install
npm install geolocation-service
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
startTracking(...)
startTracking(options: { title: string; subTitle: string; interval: number; }, callback: (location: Position | null) => void) => Promise<{ message: string; }>
| Param | Type |
| -------------- | ---------------------------------------------------------------------------- |
| options
| { title: string; subTitle: string; interval: number; } |
| callback
| (location: Position | null) => void |
Returns: Promise<{ message: string; }>
stopTracking()
stopTracking() => Promise<{ message: string; }>
Returns: Promise<{ message: string; }>
Interfaces
Position
| Prop | Type |
| --------------- | ------------------- |
| latitude
| number |
| longitude
| number |