capacitor-community / capacitor-community/background-geolocation

Using Updated Version With @capacitor/geolocation Makes The App Crash

Open
#104 18 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
249
Forks
79
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Hi, I'm using the official [@capacitor/geolocation ](https://capacitorjs.com/docs/apis/geolocation)plugin to get the current location, and this `@capacitor-community/background-geolocation` plugin to get continuous location. The plugins were working completely fine side by side when using the 1.4.11 version. After updating this plugin and node modules of my project, app tends to crash the moment any function of [@capacitor/geolocation ](https://capacitorjs.com/docs/apis/geolocation) is called. This only happens in Android 13+ devices.

**To Reproduce**
Steps to reproduce the behavior:
1. Update the plugin from 1.4.11.
2. Delete package-lock.json and node modules in the local project.
3. Install packages with 'npm install'.
4. Build the android app.

**Expected behavior**
The app to work smoothly like it did before updating the package.

**Smartphone (please complete the following information):**
- Device: Redmi Note 11
- OS: Android 13.0.5

**Additional context**
I'm using an ionic 6.7.5 project with capacitor V4.

Any context on why this is happening would be nice. Thanks!

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.