Skip to main content

Push Notifications

Resources​

FCM For Android notifications (and potentially iOS)​

How fluffychat does it​

How we will do it​

Configuring the Sygnal Push gateway​

  • add the configuration to enable sygnal for fcm
  • create a service account and a service account file
    • firebase > settings > Cloud Messaging > Manage service accounts
    • I am using the existing firebase service account for quiri-staging
    • manage keys > add key > json
    • create an aux_file_definition for the service account file like they demonstrate for the APNS key
      • you paste the file contents right into the playbook configuration
      • there are no matrix_user_name or matrix_group_name defined as variables so I just hardcoded matrix for both as the docs say It also makes sure the files are owned by matrix:matrix, so that Sygnal can read them.
  • add the sygnal dns record

Test pushes​

Trobuleshooting​

event_id_only​

Open Questions​

  • how are environments handled in Firebase projects?
    • readme
    • make a new project for each environment