Description

Communicates with the firebase cloud messaging service to obtain a token for push notifications (token-exchange)

Data flow

Uses redis channel to obtain commands from subscribers tasks service

Input

  • messages for server channel
  • listens to firebase-update-trigger Redis key that stores the last time when there were any updates to Firebase accounts. An update here means that the service should reset it’s local cache for Firebase accounts and re-fetch them from manager-api again.

Output

Returns subscribers tokens in exchange for subscriber auth credentials. Each response is being transferred to the channel which name is equal to the consumer_id of the request.

Kafka events

  • firebase-app with action set to deleted when firebase credentials repeatedly (FirbaseErrorsCounter.ERRORS_TO_BE_REPORTED) caused 400 error during token retrieval