skip to Main Content

IID api from fcm – https://iid.googleapis.com/iid/info/IIDtoken allows to look for all topics subscribed by devicetoken. Currently since it deprecated its responding with – "Authentication using server key is deprecated. Please use OAuth2token instead."

Post generating valid OAuth2 token as well it says request Unauthorized.

Can someone please suggest whats the alternative. I have tried firebase admin sdk apis mentioned here – https://firebase.google.com/docs/cloud-messaging/manage-topics.

Firebase SDK does not have alternative api to list all topics from user deviceToken.

I have also tried to execute – pubsub.projects.topics.list api as mentioned here – https://www.any-api.com/googleapis_com/pubsub/docs/projects/pubsub_projects_topics_list. This as well didnt seems to work.

Please suggest of listing topic from user deviceToken is been fully removed post IID service is depricated.

2

Answers


  1. You would need to manage topic subscriptions on the server side by keeping track of which topics a device token is subscribed to in your own database.
    always manage and track form server side.

    Login or Signup to reply.
  2. Set this parameter in the header.
    access_token_auth: true.

    details: set this query parameter to true to get FCM topic subscription information (if any) associated with this token.
    https://iid.googleapis.com/iid/info/IIDtoken?details=true

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search