codeforbtv / cvoeo-app

The "Money on My Mind" app helps CVOEO's Reach-Up clients stay on track with their personal finance coaching.
Apache License 2.0
11 stars 4 forks source link

add push notification #167

Open mpettit opened 4 years ago

mpettit commented 4 years ago

General strategy:

  1. On initial dashboard load, ask user for push notification permissions
  2. Save push notification token on user profile
  3. When we want to trigger notification, grab user token from db and send push notification by making POST request to Expo url

Good testing tool: https://expo.io/notifications

mpettit commented 4 years ago

Eventually need to take a look at this for Android: https://docs.expo.io/versions/v35.0.0/guides/using-fcm/

mpettit commented 4 years ago

TODO: re-enable save to user profile and get rid of warning

doub1ejack commented 4 years ago

Hey Mike, thanks for taking this on. I'll look a little closer later, but thought I'd mention that I was playing with generating tokens earlier too. I suspect you're at or past the point I got to, but I made a draft pr with my little experiment for sharing: https://github.com/codeforbtv/cvoeo-app/pull/170#pullrequestreview-328899332

mpettit commented 4 years ago

Should unsubscribe from subscription using .remove()