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

iOS returns same lat/lon, wrong timestamp and doesn't work in background #348

Open
gpsaliola opened this issue Dec 29, 2021 · 3 comments
Open

Comments

@gpsaliola
Copy link

gpsaliola commented Dec 29, 2021

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 check the file log.log created in the sand box.
The first date is DateTime.Now while the second is Position.Timestamp, then follow latitude and longitude.

Expected Behavior

The two date should be similar and latitude/longitude should change at each PositionChanged event.
When the screen is locked the PositionChanged event should return user position.

Actual Behavior

The two date are different (more than one day) and lat/lon are always the same.
When the screen is locked the PositionChanged event stops to return user position.

Code snippet

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

Screenshotst

This is the screenshot of log file.
image

@gpsaliola
Copy link
Author

I've made some changes in https://www.okmap.org/a/GeolocatorExample.zip and the app seems now work properly when in foreground. In background the app crashes after some minutes. See post #349

@jamesmontemagno
Copy link
Owner

Please put code on github and not a random zip please.

@gpsaliola
Copy link
Author

I look stupid but I haven't found a way to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants