This app was created using @capacitor/create-app
,
and comes with a very minimal shell for building an app.
To run the provided example, you can use npm start
command.
npm start
npm run build && npx cap sync android
npx cap open android
Run on device
Press "start live GPS" button
eoLocationWatchId = await Geolocation.watchPosition(
{ enableHighAccuracy: true, timeout: 2000, maximumAge: 2500 },
(currentPosition: Position | null) => {
Although the code says 2000ms the delay between 2 measurements is way longer