I'm a beginner in fcm
and stuck in one issue. After getting reference from several source I'm able to implement it successfully. But now I'm trapped in a strange issue.
As fcm
creates unique tokens per device so notifications can be sent to that device using that unique token only . So, after the token is generated I'm saving that token into mongodb for that particular user and the notification is sent to that device without any problem.
Now let's assume a scenario : Let a and b be two users having different device so they'll have unique tokens in their mongodb documents
. Now if a will try to logging in into his account from b's device then how can I send notification to a's account in b's device as the mongo-document
of a containing token for a's device which can't be used for the current i.e b's device
Please do excuse me if my question is silly.