nobelization / panoramax-mobile-app

GNU Affero General Public License v3.0
35 stars 7 forks source link

Do not allow the user to take a picture if GPS position isn't precise enough #87

Closed overflorian closed 1 month ago

overflorian commented 4 months ago

If the GPS position is not precise enough (>10m), then the user should NOT be able to take a picture / begin a sequence.

In this case,

  1. change the button for the "GPS fixed" icon coloured in red #ea4335ff position not precise enough

  2. a snackbar should display the warning icon, the message in bold "Mauvaise précision de la localisation GPS" followed with "Placez-vous en extérieur et patientez". This message should be displayed until the position is precise enough (not possible to discard it).

Inspired by the Mapillary app: Screenshot_20240718-125847_Mapillary

  1. a specific mention of the precision distance should be added (only displayed in this mode, not when the fix is not available nor when the precision is good enough), using the error icon with the distance in meters précision

Exception

When a sequence is already launched, it is possible that

OtterWays commented 1 month ago

On Android, a snackbar should display momentarily and cannot remain permanently on the screen. It's better to use an alert dialog which is more suitable for informing the user of an important event. An alert dialog can remain displayed for as long as necessary.