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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i background-geolocation

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    31.1 kB

    Total Files

    27

    Last publish

    Collaborators

    • shiv.vijon