Skip to content

Commit

Permalink
Support FCM HTTP v1 (async only)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdb9696 committed Aug 29, 2024
1 parent a2702bb commit 48fed3d
Show file tree
Hide file tree
Showing 10 changed files with 476 additions and 488 deletions.
8 changes: 7 additions & 1 deletion firebase_messaging/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from .fcmpushclient import FcmPushClient, FcmPushClientConfig, FcmPushClientRunState
from .fcmregister import FcmRegisterConfig

__all__ = ["FcmPushClientConfig", "FcmPushClient", "FcmPushClientRunState"]
__all__ = [
"FcmPushClientConfig",
"FcmPushClient",
"FcmPushClientRunState",
"FcmRegisterConfig",
]
12 changes: 10 additions & 2 deletions firebase_messaging/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@
+ "j8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4"
)

FCM_SUBSCRIBE_URL = "https://fcm.googleapis.com/fcm/connect/subscribe"
FCM_SEND_URL = "https://fcm.googleapis.com/fcm/send"
FCM_SUBSCRIBE_URL = "https://fcm.googleapis.com/fcm/connect/subscribe/"
FCM_SEND_URL = "https://fcm.googleapis.com/fcm/send/"

FCM_API = "https://fcm.googleapis.com/v1/"
FCM_REGISTRATION = "https://fcmregistrations.googleapis.com/v1/"
FCM_INSTALLATION = "https://firebaseinstallations.googleapis.com/v1/"
AUTH_VERSION = "FIS_v2"
SDK_VERSION = "w:0.6.6"

DOORBELLS_ENDPOINT = "/clients_api/doorbots/{0}"

MCS_VERSION = 41
MCS_HOST = "mtalk.google.com"
Expand Down
Loading

0 comments on commit 48fed3d

Please sign in to comment.