Mal Curtis
NNovu
•Created by Mal Curtis on 2/13/2024 in #💬│support
How to send sms only if user has no push devices
❤️
4 replies
NNovu
•Created by Poison on 2/6/2024 in #💬│support
How to detect and delete stale/invalid device tokens
Thanks @Pawan Jain . The issue I see is that sometimes the device token in a browser is a new token, but we have no record of what token that browser originally used. So we can either a. delete all tokens - thus removing tokens from devices that should be receiving notifications, or b. leave invalid tokens on the user which just fail on every push notification. Is there a third method I can't see here? Perhaps storing a device token in local storage so we can check if it has changed? I'm not sure how reliable this would be.
21 replies
NNovu
•Created by Poison on 2/6/2024 in #💬│support
How to detect and delete stale/invalid device tokens
I came in to ask the same question. This does not appear to be true, I always add via
deviceTokens: [token]
and the returned subscriber object contains all tokens ever added.21 replies