Is there a way to retrieve an existing notification_key based on a registration id or a notification key name?

前端 未结 2 1221
野的像风
野的像风 2020-12-06 14:20

Assuming that one has created a device group in Firebase Cloud Messaging, is there a way to retrieve an existing notification_key for a device group after it\'s

2条回答
  •  臣服心动
    2020-12-06 15:20

    There is currently no API to retrieve the Device Groups (notification_keys) associated with a given Registration Token. AFAIK, managing/mapping relationships of Device Groups and its associated registration tokens are the developers responsibility.

    For your scenario, I would suggest to temporarily store the notification_key until it is successfully stored in your App Server.

    Some possibly helpful posts:

    • Firebase Cloud Messaging - Managing Registration Tokens
    • Managing FCM device groups

提交回复
热议问题