In order to use this library to send push notifications, it is necessary to pass the services_account.json file path to the environment variable GOOGLE_APPLICATION_CREDENTIALS.
However, allowing the JSON string to be passed directly will also help for certain scenarios where the the secret do not necessary exist in a file.
In order to use this library to send push notifications, it is necessary to pass the
services_account.json
file path to the environment variableGOOGLE_APPLICATION_CREDENTIALS
. However, allowing the JSON string to be passed directly will also help for certain scenarios where the the secret do not necessary exist in a file.In fact, the firebase_config is parsed this way.
For example: