shinyorg / shiny

.NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)

Home Page:https://shinylib.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

magtimmermans opened this issue · comments

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!

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

Yes, but you can also request it.

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