I am using Ionic and Firebase with cloud function. Whenever data is updated I am sending notification.
I have two type of users: members and non-member.
For members when they signup/login, if users signup I generate FCM token and store it. If users login I check if the user has a device token stored.
Now if I also want to send push notification for non-members I also need to store their device token.
How do I go about this?
I have read that the token updates once in a while? If that's the case how can I check ?