Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

[Bug] LocationAlways returns granted even if the user grants only the in-use permission

Open ronmichael opened this issue 4 years ago • 4 comments

Description

When asking for permission, LocationAlways returns granted even if the user grants only the in-use permission

Steps to Reproduce

  1. Request LocationAlways permission
  2. Accept only the in-use part of the permission
  3. Check LocationAlways permission

Expected Behavior

LocationAlways returns Denied

Actual Behavior

LocationAlways returns Granted

Basic Information

  • Version with issue: 1.7.1
  • Last known good version: n/a
  • IDE: Visual Studio 2022
  • Platform Target Frameworks:
    • iOS: 13.0
  • Nuget Packages: Com.OneSignal; RadarIO.Xamarin
  • Affected Devices: iPhone 11 Pro with iOS 15.3.1

ronmichael avatar Mar 11 '22 21:03 ronmichael

Hey @ronmichael thanks for reporting it, I'm having a very similar issue. Do you have the same problem with Android?

bricefriha avatar Mar 23 '22 17:03 bricefriha

Hey @ronmichael thanks for reporting it, I'm having a very similar issue. Do you have the same problem with Android?

I haven't seen this problem with Android -- knock on wood. :)

ronmichael avatar Mar 23 '22 17:03 ronmichael

Hey @ronmichael thanks for reporting it, I'm having a very similar issue. Do you have the same problem with Android?

I haven't seen this problem with Android -- knock on wood. :)

Alright, my issue might be totally separate (or even just personal 😅). I might be able to take a look at yours this week end 😉

bricefriha avatar Mar 24 '22 09:03 bricefriha

https://developer.apple.com/forums/thread/117256

looks like iOS considers "When in use" action like partially granted for Always. After some time(after location monitoring event like BLE beacon region detection) iOS will ask user to choose either "Always" or continue "When in use".

VolodaUa avatar May 20 '22 12:05 VolodaUa