cryonics-institute / checkin

A Mobile+Web Suite That Lets Those You Love Know You're OK; A Dead Man's Switch for Your Phone
GNU General Public License v3.0
3 stars 1 forks source link

Add Standby Registration Tokens to Patient Document on Firestore #102

Closed ghost closed 4 years ago

ghost commented 4 years ago

This merge changes the Redux actions so that the standbys'/buddys' device tokens are added to the Firestore document of the patient they are following. With these tokens in the Firestore, Cloud Functions is able to calculate whether the standby/buddy should receive an alert that the patient/member has not checked in within the snooze interval set by the patient/member, and, of course, send a push notification to the standby's/buddy's device if so.

With this request, the React Native code is ready for alpha testing once installed into an Android build.