是否可以在 Android 中自定义 Firebase Cloud Messaging 生成的令牌?

Is it possible to customize the token generated by Firebase Cloud Messaging in Android?

我觉得标题够清楚了。我怎样才能做到这一点?我需要将我的自定义数据设置为 FCM 中任何设备的令牌。是否可以?谢谢

FCM token(现在称为Instance IDs)是由FCM决定的,不能由你自己的代码决定。

您可能想在您的问题中详细说明实际用例,因为通常有 another/better 方法可以在出现这种情况时实现目标。另见 What is the XY problem?