Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 2.56 KB

File metadata and controls

56 lines (46 loc) · 2.56 KB

Turning formr into a PWA

Change the studies view

  • Add a service worker
    • Workbox?
  • Add a manifest.json
  • Add icon
  • Add a splash screen
  • Point to app for autogenerating relevant images, simplify uploading folder.
  • Add relevant settings to @application/Controller/AdminSurveyController.php and @templates/admin/survey/index.php

Add item to request adding to home screen

  • Item inheriting from @application/Model/Item/Item.php
    • A button to request adding to home screen,
    • guide/QR code to switch to a browser that supports PWA-homescreen (e.g., Safari on iOS)
    • Store whether it has been added to home screen
  • Item to request permission to send push notifications, inheriting from @application/Model/Item/Item.php
    • A button to request push permission
    • Store whether permission has been granted

Add new model for push notifications

Add run module for push notifications

  • New module based on @application/Model/RunUnit/Email.php
  • Add relevant logic to @application/Controller/RunSession.php
  • Add relevant logic to @application/Controller/UnitSession.php
  • Add relevant logic to @application/Controller/RunUnit.php
  • Add logging of push notifications to @application/Controller/AdminRunController.php

Probably need to log when users no longer receive push notifications. What to do in that case? Notify admins?

Problems:

  • App reloads when people open the app after having received a push message. Push messages are then cleared.
  • Badge counts
  • Vibrate/Silent properties are respected, time-to-live is enforced as expiring old notifications. All notifications with the same title have the same tag.
  • Some browsers (e.g., iOS Brave don't allow for adding to home screen)
  • Submit button is deactivated upon trying to submit a required home screen/phone item, better integrate with existing form validation API?
  • Should hide the inputs again
  • Switch to https://github.com/philfung/add-to-homescreen ?

Add documentation

  • Add documentation to @templates/public/documentation/

Improvements

  • Make badge depend on whether a survey is active, clear if not.

  • Update texts re uploads

  • Update texts re users can be deleted if they don't comply

  • Test user account deletion

  • Fix push message settings bug

  • Correct privacy policy link in settings

  • RequestCookie item

  • Datenschutzmuster anpassen