jamesmontemagno / GeolocatorPlugin

Geolocation plugin for Xamarin and Windows
MIT License
294 stars 158 forks source link

On iOS app crashes when in background after some minutes #349

Open gpsaliola opened 2 years ago

gpsaliola commented 2 years ago

Bug Information Version Number of Plugin: 4.5.0.6 Device Tested On: iPhone 10 Version of VS: 2022 Version of Xamarin.Forms: 5.0.0.2291

Steps to reproduce the Behavior Download this example: https://www.okmap.org/a/GeolocatorExample.zip Run on iOS iPhone and put the app in background. Wait some minutes and put the app in foreground. If the behavoir is normal repeat operations unitl app is crashed (you will see the app that restarts).

Expected Behavior The app writes into a log file the position information (lat, lon, accuracy, altitude, ecc...).

Actual Behavior The app crashes when in background after some minutes.

Code snippet https://www.okmap.org/a/GeolocatorExample.zip