flutter-permission-handler icon indicating copy to clipboard operation
flutter-permission-handler copied to clipboard

[iOS] Location permission status is not correct

Open ghost opened this issue 2 years ago ā€¢ 6 comments

šŸ› Bug Report

I request Permission.locationWhenInUse.request() and I choose "Allow Once", the status of locationWhenInUse is granted and the status of locationAlways is permanentlyDenied, and I go to setting page, the location setting status is Ask next time.

Expected behavior

the status of locationWhenInUse and locationAlways are granted

Reproduction steps

  • I request location permission with Permission.locationWhenInUse.request()
  • I go to the screen that has requested location permission
  • The native prompt appears and I choose "Allow Once"
  • The status of locationWhenInUse is granted, status of locationAlways is permanentlyDenied and location permission status in setting page is "ASK NEXT TIME"

Configuration

Flutter 2.2.3 iOS 14.5

Version: 8.1.6

Platform:

  • [x] :iphone: iOS
  • [ ] :robot: Android

ghost avatar Nov 26 '21 11:11 ghost

same

jackbbhua avatar Dec 06 '21 16:12 jackbbhua

Same with contacts permission.

vlkonoshenko avatar Dec 17 '21 12:12 vlkonoshenko

same issue

sspogra avatar Jan 17 '22 08:01 sspogra

same issue

nhlhelen avatar Mar 02 '22 07:03 nhlhelen

I have the simmilar problem. When my app asks for permission and I tap "Allow while using app", the status of this permission is "denied". However, it's actually granted.

pacifi5t avatar Apr 19 '22 20:04 pacifi5t

Oh, Iā€™m sorry, I forgot about this issue. Yes, everything works just fine after I set up the app from scratch.

On 9 Jul 2022, at 10:45, etienneyoufeel @.***> wrote:

Have you set up correctly you ios app ? https://pub.dev/packages/permission_handler#setup https://pub.dev/packages/permission_handler#setup After do that I got not problem.

ā€” Reply to this email directly, view it on GitHub https://github.com/Baseflow/flutter-permission-handler/issues/741#issuecomment-1179498034, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANVJN3FTYWBNZJZRHZCBTNLVTEUZZANCNFSM5I2OKZ2A. You are receiving this because you commented.

pacifi5t avatar Jul 09 '22 14:07 pacifi5t

It works exactly as expected when I test this with the example app. Therefore, I'll close this issue. Feel free to reopen the issue when you have new information.

Kind regards,

TimHoogstrate avatar Aug 22 '23 15:08 TimHoogstrate