Skip to content

FR: Add support for fetching topic subscriptions #594

Description

@vpavic

Currently, FirebaseMessaging (and InstanceIdClient that it delegates to) provides support for subscribing to the topic and unsubscribing. However, to be able to fully (and reliably) manage topics from the server, these should be complemented with the ability to fetch the list of current topic subscriptions from the Firebase.

Apparently, the Instance ID API (i.e. iid.googleapis.com/iid) provides this capability - see https://developers.google.com/instance-id/reference/server#get_information_about_app_instances.

It would be nice if the SDK would expose this operation on the InstanceIdClient, and subsequently, FirebaseMessaging.

Activity

  1. vpavic commented on Sep 8, 2021

    @vpavic
    ContributorAuthor

    Hey @hiranya911 & @chong-shao, do you maybe have a rough idea when this feature would be available? Would a PR help speed this up a bit maybe?

  2. hiranya911 commented on Sep 10, 2021

    @hiranya911
    Contributor

    This is something that should be scoped out and decided by the product (FCM) team. So I'll let @chong-shao and his team to chime in here.

  3. chong-shao commented on Sep 11, 2021

    @chong-shao
    Contributor

    Apologies for the delays on the launch of this API. The team is still working on this, please expect to hear more on this later this year.

    I'll keep this thread open to update any progress.

  4. mslatinac commented on Feb 1, 2022

    @mslatinac

    Hi, are there any updates regarding the request?

  5. TimFowle commented on Oct 11, 2022

    @TimFowle

    Hello
    Are there any updates on this?
    I was making calls to https://iid.googleapis.com/iid directly but this doesnt appear to support OAuth for newer projects that dont have a Legacy API Key.

    Thanks

  6. vpavic commented on Jun 23, 2023

    @vpavic
    ContributorAuthor

    @chong-shao, sorry to tag you directly, but are there updates here?

    Now that Batch send API is getting decommissioned, using topics (if I'm not mistaken) is the only way to send a message to multiple recipients in a single API call. That means we'll probably explore migrating some of our FCM workloads that were relying on Batch send API to topic - which brings us back to concerns expressed in the description of this issue.

  7. SylvainAssemat commented on Mar 2, 2024

    @SylvainAssemat

    Hi all

    Same need as @vpavic .
    It seems to be a long time there is no evolutions about this feature which seems to be a mandatory feature.
    Can you help us to have more facilities on topics ? For example, listing all tokens from a topics, CRUD on topics etc etc...

  8. vpavic commented on Sep 25, 2026

    @vpavic
    ContributorAuthor

    Looking at the recently published v9.11.0 release and specifically #1240, seems that the newly adopted topic subscription management API provides support for retrieving topics for a registration.

    Since that was the prerequisite for implementing this feature request, is there any chance of seeing progress here in the near future?

  9. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions