location--tracker
v0.0.7
Published
Tracking User Location by Background Service
Readme
location--tracker
Tracking User Location by Background Service in Android and IOS applications and send them to the server async.
Install
npm install location--tracker
npx cap syncAPI
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
trackLocation(...)
trackLocation(options: WatchOptions, callback: (position?: any, error?: CallbackError | undefined) => void) => Promise<string>| Param | Type |
| -------------- | -------------------------------------------------------------------------------------------- |
| options | WatchOptions |
| callback | (position?: any, error?: CallbackError) => void |
Returns: Promise<string>
stopTrackingLocation()
stopTrackingLocation() => Promise<{ value: any; }>Returns: Promise<{ value: any; }>
Interfaces
WatchOptions
| Prop | Type |
| ------------- | ------------------- |
| baseUrl | string |
| data | any |
CallbackError
| Prop | Type |
| ---------- | ------------------- |
| code | string |
