adds Firebase communication stump

- Firebase connection via Pigeon library
- sends bump to a single token at the moment
- encrypted test is sent as notification message
This commit is contained in:
2021-12-30 13:06:26 +01:00
parent 8262b61085
commit 745b0dc4f2
10 changed files with 148 additions and 45 deletions

View File

@ -47,6 +47,11 @@ config :logger, :console,
# Use Jason for JSON parsing in Phoenix
config :phoenix, :json_library, Jason
config :bump, Bump.FCM,
adapter: Pigeon.FCM,
project_id: "bump-ce0f4",
service_account_json: File.read!("secret/service-account.json")
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"