NewcastleRSE / dolfin-flutter

The Flutter-based app for the Dolfin Project
1 stars 0 forks source link

8) [UPDATE BEHAVIOUR ON HOW THE USER IS INFORMED ABOUT REPORTING TIMES] #180

Closed notimre closed 4 months ago

notimre commented 10 months ago

Goals

The user is aware of them having to report less frequently.

Results

On the day the app switches from daily to weekly reporting, the user receives a push notification to confirm this. "From now on, the DOLFIN app will ask you to report once a week (instead of every day) how many times you have given your baby the supplement during the week. Please continue giving the supplement each day."

Update behaviour from:

The user is not explicitly informed that the app has switched from daily to weekly reporting

notimre commented 10 months ago

Relevant #168

notimre commented 5 months ago

This should be in the existing code base under scheduledDolfinNotifiationFunction

notimre commented 4 months ago

Madeleine highlighted further problems on the issue: Relevant #178

Quoting her: Switch from daily to weekly (items 6 and 8 on the attached)

KateCourt commented 4 months ago
  1. If we are asking for a weekly report about the previous 7 days we need to add a clause so that for days 28-33, the user receives no notification. On day 34 the user should start getting weeklys. Otherwise daily and weekly forms will overlap for a week.
  2. I can see you have added a new message for the 1 month switch over - have you tested this to check it is working as it seems Madeleine hasn't received this? You can double check which children she is using in the database to investigate further.
  3. In the flutter application, there's a function in homepage.dart called 'checkDailyNotificationsVisibility'. This needs to be updated following the new logic on when to switch from weekly to daily notifications.
KateCourt commented 4 months ago
KateCourt commented 4 months ago

Scheduled notification function works as expected:

Day 27 - please fill out daily form Day 28 - notification saying I will get weekly notifications unless opted into daily. Daily notifications flag in database changes to false. However, this is not reflected in the settings section of the app so create issue to fix this. Day 29 - daily reminder for giving supplement (when opted in), nothing (opted out) Day 35 - weekly reminder for form

KateCourt commented 4 months ago

Check child function: Days up to 28 should show dailies - correct Days 28-34 should show no forms - correct Day 35 should show weekly - correct Day 365 onwards should end??

KateCourt commented 4 months ago

Behaviour above all correct