V1.30.9 env settings fixes

This commit is contained in:
Tibor Bossanyi (Freelancer)
2021-10-02 16:02:34 +02:00
parent 3330e6ea77
commit 70f207209f
4 changed files with 7 additions and 2 deletions
@@ -1,4 +1,5 @@
import datetime
import os
from firebase_admin import messaging, initialize_app, exceptions
class FCM:
@@ -8,6 +9,8 @@ class FCM:
def __init__(self):
# To learn more, visit the docs here:
# https://cloud.google.com/docs/authentication/getting-started>
env = os.environ['GOOGLE_APPLICATION_CREDENTIALS']
print(f'ENV: {env}')
default_app = initialize_app()
def send_to_multiple_token(self, title, body, registration_token, image_url = None):