To use this plugin you only need to deploy the docker image eu.mia-platform.eu/plugins/kafka2firebase with the environment variables of your system and create a config map with the Google credential given by Firebase (see the file example google-credential.example.json).
The environment variables needed are:
Note that the firebase credentials can be put in wherever position you want and the file can be called as you prefer, but remember to specify the entire location of the file in the GOOGLE_APPLICATION_CREDENTIALS env variable.
The OK and KO requests send a body composed as the kafka message received. This means that it will contain the message id, the push, the topics and the devices token, but in this case only one between devices tokens and topics has a value according to the kind of push that has been sent.
Once you prepared the service, the deployment with the env variables specified above and the config map with the google application credentials, you can deploy and start using the plugin.