Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Location Permission Always Requester does not work (or appear) #1396

Open
6 of 11 tasks
magtimmermans opened this issue Feb 12, 2024 · 3 comments
Open
6 of 11 tasks
Labels
bug Something isn't working unverified This issue has not been verified by a maintainer

Comments

@magtimmermans
Copy link

Component/Nuget

GPS or Geofencing (Shiny.Locations)

What operating system(s) are effected?

  • iOS (13+ supported)
  • Mac Catalyst
  • Android (8+ supported)
  • Windows (.NET 7 Target - only Core is currently supported, BLE is coming)

Version(s) of Operation Systems

iOs 17.2 (real device)

Hosting Model

  • MAUI
  • Native/Classic Xamarin
  • Manual

Steps To Reproduce

  1. Request Access on iOS
  2. You will get an requester: Allow Once, Allow While Using App or Don't allow
  3. Select Allow While using App
  4. You will get that the AccesState that's not equal to Available

Expected Behavior

Expected behavior is that I will get an requester like this:image

To obtain Always authorization, the app must first request When In Use permission followed by requesting Always authorization. Is there something I need to add? Or is this a bug.

Actual Behavior

Missing the requester.

Exception or Log output

No exception.

Code Sample

var request = new GpsRequest

 {
   Accuracy = GpsAccuracy.High,
   BackgroundMode = GpsBackgroundMode.Realtime,
  };
    
   var access = await this.manager.RequestAccess(request);
    
   if (access != AccessState.Available)
   {
     // end up here when user select "Allow While Using App"
   }

Code of Conduct

  • I have supplied a reproducible sample that is NOT FROM THE SHINY SAMPLES!
  • I am a Sponsor OR I am using the LATEST stable/beta version from nuget (v3.0 stable - ALPHAS are not taking issues - Sponsors can still send v2 issues)
  • I am Sponsor OR My GitHub account is 30+ days old
  • I understand that if I am checking these boxes and I am not actually following what they are saying, I will be removed from this repository!
@magtimmermans magtimmermans added bug Something isn't working unverified This issue has not been verified by a maintainer labels Feb 12, 2024
@aritchie
Copy link
Member

iOS will ask the user the additional permission request after a few hours of running in the background.

@magtimmermans
Copy link
Author

Yes, but you can also request it.

@aritchie
Copy link
Member

We'll see. I'm not promising this as an update. What is there does work with the standard workflows I use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unverified This issue has not been verified by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants