Skip to content

[Help Wanted]: Question about ProviderChangeEvent #2420

@patrickfatrick

Description

@patrickfatrick

Required Reading

  • Confirmed

Plugin Version

4.18.6

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

Google Pixel 4 XL

Device operating-systems(s)

Android 15

React Native / Expo version

React Native 0.77.0

What do you require assistance about?

I have more of a general question to which I could not find an answer in the documentation. A user started receiving LocationError 1 ("Location permission denied") when using getCurrentPosition with no change to the app itself. A log of the providerState (returned from BackgroundGeolocation.getProviderState()) in the error handler captured the following:

{"status":3,"accuracyAuthorization":0,"airplane":false,"gps":true,"enabled":true,"network":false}

My working theory is that LocationError code 1 is thrown because the network location provider is disabled. My question is, how does this state occur? I'm not able to reproduce having the network location provider disabled while location services is simultaneously enabled, like I cannot find a combination of settings in Android 15 which lead to that state. Do you have any insight into it?

[Optional] Plugin Code and/or Config

[Optional] Relevant log output

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