Open daadu opened 1 year ago
@xtrinch Let me now, what do you think about it - I will file PR for it.
I think perhaps you're right that this does not qualify for token deactivation
I also noticed that the token is deleted on the Firebase server as well. Not sure whether the module is pruning it (calling some delete APIs on Firebase) or it happens because of the InvalidArgumentError
I also noticed that the token is deleted on the Firebase server as well.
Noticed that once deleted from Django-server, when I ask for fcmToken
on client side I get a new one (not the deleted one).
If firebase also deletes them, then I think it is the correct behavior.
I tested and noticed this with iOS only, not sure it is the same for other platforms.
This module doesn't delete any tokens. If firebase deletes them, then it's OK if this module does too
Need to confirm this behaviour, I am using flutter clients - which are wrapper around native libraries. Also not sure if this happens with Android tokens as well.
Keeping this issue open, until this is verified.
I think this should NOT cause deletion of token. In my case I had a bug in sending message - some arg (TTL) was not proper. This caused tokens to be removed permanently.
Following could be the solution
fcm_error_list
[my preferred solution]DEACTIVE_ON_INVALID_ARGUMENT_ERROR
(or something), to enable/disbale this behaviour