Error: Requested entity was not found. at FirebaseMessagingError.FirebaseError [as constructor]

Error: Requested entity was not found. at FirebaseMessagingError.FirebaseError [as constructor]

什么时候做 firebase 推送通知

firebaseAdmin.messaging().sendMulticast(message)

我得到错误

 // Error: Requested entity was not found. at FirebaseMessagingError.FirebaseError [as constructor]
 // code: "messaging/registration-token-not-registered", message: "Requested entity was not found."

简答尝试客户端注册令牌,并从您的客户端获取新的注册令牌

The provided registration token is no longer registered.

文档来源:https://firebase.google.com/docs/cloud-messaging/send-message#admin