Skip to content

[Help Wanted]: Overlapping permission prompts for motion and background location #2354

@YapCaiFu

Description

@YapCaiFu

Required Reading

  • Confirmed

Plugin Version

4.18.5

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

OPPO Reno13 F 5G

Device operating-systems(s)

Android 15

React Native / Expo version

0.72.17

What do you require assistance about?

When BackgroundGeolocation.start() is called, the motion permission prompt appears first. A few seconds later, the background location permission prompt is shown, causing them to overlap. Regardless of whether the user selects 'Allow' or 'Don’t Allow' for motion permission, the app redirects to the Settings screen. After returning from Settings, the background location permission dialog is still displayed, creating a confusing and potentially buggy experience.

Image
Image
Image

[Optional] Plugin Code and/or Config

BackgroundGeolocation.ready({
        // Geolocation
        desiredAccuracy: BackgroundGeolocation.DESIRED_ACCURACY_LOW,
        distanceFilter: Platform.OS === 'ios' ? 10 : 0,
        disableElasticity: true,
        stopTimeout: 5,
        stationaryRadius: 20,
        locationUpdateInterval: 300000,
        fastestLocationUpdateInterval: 300000,
        stopOnStationary: false,
        // Permissions
        locationAuthorizationRequest: 'Always',
        disableLocationAuthorizationAlert: true,
        stopOnTerminate: false,
        startOnBoot: true,
        enableHeadless: true,
      })

[Optional] Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions