Mosquito-Alert / Mosquito-Alert-Mobile-App

http://www.mosquitoalert.com
4 stars 3 forks source link

Ask for GPS permission on the first time get need to use, not on first launch #110

Open epou opened 7 months ago

DigitalSeneca commented 4 months ago

I'm assuming the first time is when the user is creating a report a report and the screen with the map/your location appears (The public map is not using your location right now so it should not request this permission), and I'm also assuming that the 5 times/day background geolocation is useless unless the user has sent at least 1 report

However, in reality when the user creates a report we only need the location of the specific moment, so they won't understand why do we need the "always" permission

I would show a flutter popup briefly (so the user actually reads it) explaining why we need "location: always" and show "yes - no" -> If the user selects "yes", then show the actual location request from the system. If they select "no", the system won't know it has been rejected and therefore we can ask again later or when the user goes to "Settings > Background tracking"

epou commented 4 months ago

I like your idea but, just to be sure:

[...] and I'm also assuming that the 5 times/day background geolocation is useless unless the user has sent at least 1 report

@JohnPalmer, what Pablo is saying here is interesting!

Does users that have never uploaded a report are of our interest in terms of sampling effort? Let us know your thoughts

JohnPalmer commented 4 months ago

Hi - nice idea but we would like sampling effort even if the participant has not yet made any report. So better to ask at point of registration.

epou commented 4 months ago

So then, maybe it makes sense to show 2 popups?

  1. When the user enables (toggle switch) the 'background tracking' option in the settings menu for the first time. (Asking for 'always GPS permission')
  2. When the app needs the user's location on the 'GPS' section on each reporting form.
DigitalSeneca commented 4 months ago
  1. When the user enables (toggle switch) the 'background tracking' option in the settings menu for the first time. (Asking for 'always GPS permission')

At this moment, background tracking is enabled by default (#175) so it makes sense to ask for permission:always on launch ?

  1. When the app needs the user's location on the 'GPS' section on each reporting form.

That would make sense if we're not asking for permission:always on launch

I'm moving this from TODO to WAITING/ON HOLD until we can clarify those points