e-mission/op-admin-dashboard

feat: Push notification tab

Opened this issue · 3 comments

@shankari can you give me some real-world use cases of this manual push notification feature? For me, I only find it useful if I can make sending a push notification conditional on the users' data. For example, remind those with low trip labeling stats less than 50% to label their trips.

@asiripanich

  1. When there is a new update to the app, one program had us send a notification to upgrade the app
  2. When we get to the end of their data collection period, one program wanted us to send a notification to remind people to uninstall the app
  3. One of the programs had us send out training videos - e.g.
Notification:
Do you remember…
Hand Signals

On click, open the website https://www.youtube.com/watch?v=kPPo1jQAUpY
  1. They also had us send out a popup
Celebrate your e-bike anniversary with us!
Aug 3, CSU Campus Pavilion (....), drop in 4-7 pm
  1. and, when they had a slew of e-bike thefts
Notification:
Bike theft is on the rise
Lock the FRAME of your bike

In-app popup:
Don’t be left with a detached wheel or rack
Your lock needs to go through the FRAME

and

Notification:
Guard against bike theft
Register your e-bike serial number

on click, open the website https://secure.fcgov.com/bicycling/

Having said all that, it would be good to support the query specs for the push notifications as well - e.g.
https://github.com/e-mission/e-mission-server/tree/master/emission/net/ext_service/push/sample.specs/query
and potentially add others that might be useful

Note also that the options on the left side should change based on the survey spec type.

  • For popups, there will be text + message for the notification and text + message for the popup that shows up in-app when the notification is clicked.
  • For websites, there will be a text + message for the notification and a link to the website
    ...

If that is too complex, maybe you can show them a JSON template and have them fill it in? These will generally be people with a college degree, so maybe they can fill in a text form?