background-geolocation
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.22latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.22
0.0.10

Package Sidebar

Install

npm i background-geolocation

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

31.1 kB

Total Files

27

Last publish

Collaborators

  • shiv.vijon