See the firebase cloud messaging doc (https://firebase.google.com/docs/cloud-messaging) for more detailed information.
- A running tumlive instance (built locally without using docker): gocast/IPraktikum-73-push-notifications
- A running gocast mobile app: gocast_mobile/73-implement-push-notifications
- Access to the
config.yaml
file - A google/firebase account
-
Follow the setup guide to create a blank firebase project
-
Go to your project settings:
-
Go to "Cloud Messaging" and add a server key (if no key is set, try this)
-
Go to "General" and add a android and iOS app:
- Open your
config.yaml
(probably stored in~/.TUM-Live/config.yaml
) and add the following entry at the end of the file:
fcmServerKey: <insert-your-serverkey>
-
Start your tumlive instance
-
Start a TUM-Live worker (see here)
-
Start your app and allow notifications:
-
Make an example upload request using a StreamID of a course in which you are enrolled from the TUM-Live worker to tumlive using the
NotifyUploadFinished
method in the Postman collection worker/FromWorker -
A notification should have appeared in the app: (if not, try re-installing gocast-mobile on the device)