How to get Firebase user id from FCM token? (in admin code on server)
问题 My signed-in Android clients register their tokens with my server. The problem is I am not sure whether the token sent by a particular client genuinely belongs to that client user id. A bad client could register valid tokens of other users. Given an FCM token and a user id, how can my admin code on the server verify that the token indeed belongs to the (authenticated) user id? 回答1: On a Firebase level there is no connection between a Authentication UID, and a Cloud Messaging Instance ID token