From 9b9d3fa1992d331d73d877cb35d076c697c61f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0shak=20Okutan?= Date: Sat, 2 Dec 2023 03:09:10 +0300 Subject: [PATCH] Add silent notification example for GCMDevice --- README.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/README.rst b/README.rst index b9811033..ae4c9de9 100644 --- a/README.rst +++ b/README.rst @@ -147,6 +147,7 @@ FCM/GCM and APNS services have slightly different semantics. The app tries to of # but for more complex nested collections the extras dict will be sent via # the bulk message api. device.send_message(None, extra={"foo": "bar"}) + device.send_message(None, extra={"foo": "bar"}, use_fcm_notifications=False) # Silent message with custom data. device = APNSDevice.objects.get(registration_id=apns_token) device.send_message("You've got mail") # Alert message may only be sent as text.