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
serverchannel - listens to
firebase-update-triggerRedis 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
actionset todeletedwhen firebase credentials repeatedly (FirbaseErrorsCounter.ERRORS_TO_BE_REPORTED) caused400error during token retrieval