Skip to content

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

Open
@SumnimaS

Description

@SumnimaS

Describe the bug
Hi, I'm using the official @capacitor/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 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions