|
1 | 1 | # Push notifications |
2 | 2 |
|
| 3 | +NOTE: this file is outdated. Notifications were removed in 2025 because |
| 4 | +the library used was no longer receiving updates and was causing crashes. |
| 5 | +Furthermore, maintaining notifications has been quite a burden. I will |
| 6 | +leave the choice of restoring notifications to the following team. (Paul) |
| 7 | + |
3 | 8 | ## Inside the app |
4 | 9 |
|
5 | 10 | Notification setup is done in `src/utils/Notifications.ts` |
@@ -86,15 +91,15 @@ Further reading about [FCM send](https://firebase.google.com/docs/reference/fcm/ |
86 | 91 | - Set up a [service |
87 | 92 | worker](https://console.cloud.google.com/iam-admin/serviceaccounts?project=amicaleinsatoulouse). |
88 | 93 | You will likely need to give it a role similar to `Agent de |
89 | | - service de gestion du service Firebase`. |
| 94 | +service de gestion du service Firebase`. |
90 | 95 | - Create a key for this service worker |
91 | 96 | - Securely transfer the key file to the production environment |
92 | 97 | - Remove key from your system. |
93 | 98 | - `gcloud auth activate-service-account <service worker email> |
94 | | - --key-file=amicaleinsatoulouse-XX.json` |
| 99 | +--key-file=amicaleinsatoulouse-XX.json` |
95 | 100 | - Ensure you are using the service worker (active) : `gcloud auth |
96 | | - list`. If needed you can change the active accout with `cloud |
97 | | - config set account <serice worker email>` |
| 101 | +list`. If needed you can change the active accout with `cloud |
| 102 | +config set account <serice worker email>` |
98 | 103 | - Remove worker key file. |
99 | 104 |
|
100 | 105 | ### Sending a notification in the production environment |
|
0 commit comments