Replies: 2 comments 5 replies
-
It would be great if you could take the time to clarify the situation 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
-
@karambaq Yes, they are not getting deleted because you're filtering them when sending. This is expected behaviour. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you pass a queryset which is filtered with
active=True
,Example:
Then inactive devices is not being deleted because there is none of them in the queryset after marking them as inactive in this line (That's my guess):
https://github.com/xtrinch/fcm-django/blob/master/fcm_django/models.py#L195
self.filter(registration_id__in=deactivated_ids).update(active=False)
I'm not sure if this is expected behavior so making it as discussion.
Also I have an answer, I'm sending a few messages to the inactive devices, but I don't see them in the
registration_ids_sent
of the firebase response and indeactivated_registration_ids
too, so they just stands here as inactive. Should I delete them by myself?Beta Was this translation helpful? Give feedback.
All reactions