RADAR-base / RADAR-Questionnaire

Questionnaire mobile application (Active App) for RADAR-base
https://radar-base.org/
Apache License 2.0
18 stars 15 forks source link

Support aggregating of notifications #1448

Open yatharthranjan opened 2 years ago

yatharthranjan commented 2 years ago

Currently, the app schedules one notification for each task. It might be better to provide a single aggregate notification if there are multiple tasks at the same time because in this case most likely the users will tap one notification, go into the app, complete all the questionnaires and dismiss the remaining notifications as they do not have value anymore.

So a single notification (which aggregates multiple assessments having the same time) like Questionnaires Pending. Please open the app to complete them.

Questionnaires that are allowed to be aggregated in such a way can be flagged in the protocol. Some questionnaires we may not want this behaviour (in case they are urgent, require tapping on the notification explicitly, etc).

mpgxvii commented 3 months ago

@yatharthranjan Maybe adding a property like this to the protocol?

{
  "version": "0.1.9",
  "schemaVersion": "0.0.1",
  "name": "RADAR ART CARMA KCL s1",
  "healthIssues": ["ADHD"],
  "mergeNotifications": true,
  "protocols": [

or a flag that will allow notifications to be scheduled or not?

    "notification": {
          "enabled": true,
          "title": {
            "en": "Questionnaire time"
          },
          "text": {
            "en": "Please finish them within 3 days."
          }

What do you think?

yatharthranjan commented 2 days ago

yes, I prefer the enable/disable method.