ionic-team / ionic-team/capacitor-background-runner

What is the correct call in the BackgroundRunner for Geolocation

Open
#66 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
56
Forks
36
Avg merge
4d 12h
Merged PRs (30d)
7

Description

The API description (https://capacitorjs.com/docs/next/apis/background-runner#geolocation-1) states:

CapacitorGeolocation.getCurrentLocation()

whereas in the code is:

const location = await CapacitorGeolocation.getCurrentPosition();

what is correct? In my case neither works. First gives the error: no a function (in the log) second a full stack of errors and then then app stops.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.