ionic-team / ionic-team/capacitor-background-runner
What is the correct call in the BackgroundRunner for Geolocation
Open
- 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
Assessment
This issue has not been assessed yet.