ctnadovich / ebrevet

An electronic brevet card for randonneuring
GNU General Public License v3.0
3 stars 0 forks source link

Failure to find location #3

Closed ctnadovich closed 1 year ago

ctnadovich commented 1 year ago

Some users report that the app never finds their location. I suspect this is because they have location services disabled. The app should probably have more aggressive insistence on location permissions. Perhaps this should be checked often and a failure should block operation with a modal dialog.

ctnadovich commented 1 year ago

Added an initial check of GPS permissions when first building the event list page. This is in the initState method so it only happens once when that page is first built, presumably the first time the user runs the app. It puts up a modal dialog that allows retrying or ignoring. In the ride page, where GPS errors occur, these errors are now shown on the snackbar. Since GPS is checked with a timer on that page, the errors will pop up periodically. I think this may be enough noise to get the point across to the user that GPS permissions are denied. Let's see if it helps.