什么是 firebase fcm 的设备注册 ID,我可以在哪里提取它们?

what is Device Registration ID for firebase fcm and where I can extract them?

from pyfcm import FCMNotification

push_service = FCMNotification(api_key="<api-key>")

registration_id = "<device registration_id>"
message_title = "Uber update"
message_body = "Hi john, your customized news for today is ready"
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title, message_body=message_body)

print result

我正在使用 Pyfcm 进行推送通知,我想为此获取设备注册 ID。

你可以获得token(=device registration_id)

在我的代码中:

String newToken= instanceIdResult.getToken();

也许在您的代码中:

String newToken = FirebaseInstanceId.getInstance().getToken();

所以newToken = device registration_id