diff --git a/fcm_django/models.py b/fcm_django/models.py index 515ade3..56eb412 100644 --- a/fcm_django/models.py +++ b/fcm_django/models.py @@ -310,6 +310,11 @@ def send_message( :returns messaging.SendResponse or FirebaseError if the device was deactivated due to an error. """ + if not self.active: + return messaging.SendResponse( + None, + None, + ) message.token = self.registration_id try: return messaging.SendResponse(