Sunday, June 23, 2024
HomeiOS Developmentios - MAUI background gps location replace

ios – MAUI background gps location replace


Maui now has Microsoft.Maui.Units.Sensors.Geolocation.StartListeningForegroundAsync
which is sweet and works properly, however it’s solely for foreground monitoring, so even when you’ve got the required permissions on your app (and have a service operating on Android), you cannot monitor within the background.

Why they determined to try this… properly… I wish to love Maui, however it isn’t at all times straightforward.

Anyway, from Xamarin, and dealing on Maui, there may be the previous Geolocator.Plugin which does help background monitoring, and that can be utilized high quality on Android, however for some purpose, on iOS (solely examined on 17) whatever the listener settings (report instantly, don’t look forward to important movement and many others.) samples are very uncommon, and plainly the choices are ignored and the brink for location updates is about 500m, which isn’t working for me.

I’ve beforehand made my very own listeners in Android and iOS individually, which labored, nevertheless it has been some time and the code is historical and has additionally not been examined with iOS 17. In addition to I attempt to use normal Maui when doable, maintained plugins when I’ve to and solely do these native implementations when i’m completely compelled to do it.

I’m curious if others have some perception into this. Have you ever made Geolocator.Plugin work with Maui iOS 17, or have you learnt of a strong plugin which is able to work?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments