From 3622d2a2c597dc619c60a581d500901f6de706a7 Mon Sep 17 00:00:00 2001 From: r3pr3ss10n <145872387+r3pr3ss10n@users.noreply.github.com> Date: Thu, 20 Jun 2024 13:27:23 +0300 Subject: [PATCH] Make FCM token optional We don't have to request it if using topics. --- pyfcm/fcm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyfcm/fcm.py b/pyfcm/fcm.py index e340f40..ca3f945 100644 --- a/pyfcm/fcm.py +++ b/pyfcm/fcm.py @@ -5,7 +5,7 @@ class FCMNotification(BaseAPI): def notify( self, - fcm_token, + fcm_token=None, notification_title=None, notification_body=None, notification_image=None, @@ -23,7 +23,7 @@ def notify( Send push notification to a single device Args: - fcm_token (str): FCM device registration ID + fcm_token (str, optional): FCM device registration ID notification_title (str, optional): Message title to display in the notification tray notification_body (str, optional): Message string to display in the notification tray notification_image (str, optional): Icon that appears next to the notification