Skip to content

Got permanentlyDenied when location service is disabledΒ #669

@emersonsiega

Description

@emersonsiega

πŸ› Bug Report

The Permission.locationWhenInUse.status method is returning permanentlyDenied if the location service was disabled in iPhone.

On Android it's working fine.

Expected behavior

I've created a logic in these steps:

  • Request permission status
  • If is denied, call my request permission method
  • My request permission method will check if service is disabled (if has a service)
  • If service is disabled, this method will return a specific error and, in some cases, I can request the user to enabled the service, opening the app settings

I believe that returning a permanentlyDenied status just for iOS is not correct. Should keep the same behavior for Android/iOS.

Reproduction steps

  1. Disable the iOS location service
  2. Request Permission.locationWhenInUse.status

Configuration

Version: 8.1.6

Platform:

  • πŸ“± iOS
  • πŸ€– Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work list.platform: iosIssue is related to the iOS platformtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions