-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Add API for checking subscription status of a given topic #225
Comments
Hi @js! Agreed it would be nice to have that in the SDK. There is a REST API to request this, it currently requires your API Key to perform that check, which the SDK doesn't have. |
+1 |
1 similar comment
+1 |
This is the main reason my company stays away from topics on the client side. I'd love to see an update on this! |
As rsattar stated, you can use the REST API to request this, currently we don't have plan providing such API as exposing your API key in the client would expose it to the public and allow anyone to send messages to the user of that application. |
@chliangGoogle Totally agreed that "exposing your API key in the client would expose it to the public", that's why this issue has been raised to create a new API while will let the client query for the subscription status of any given topic, or more precisely the list of all active subscriptions for the given device. Right now the device has the ability to subscribe and unsubscribe from topics, which inherently means that the calls to subscribe/unsubscribe APIs are authenticated using a mechanism that is different from the server API key, so it is only reasonable that the client has the ability to get the list of subscribed topics too. Please explain the reasoning behind your thinking. |
+1 |
Thanks @sowdri for explaining the request. Yes if a solution without including a server key would be ideal, we are bringing this request to our team and will let you know with the updates. |
@chliangGoogle Any updates? |
Should we keep holding out for this, or just assume that it will never be done? |
Is there any movement on this (or has anyone come up with an elegant solution)? |
Same here as @KyleGoslan is asking, any movement on this? Pretty concerning this ticket is from 2017 and there is no movement on it, seems like quite some people need this. |
Thanks for bring this up to our attention, please upvote at the top, and I will bring this to our PM again to see if priority shifts. |
I need this too. |
Me too |
We need this too. |
Me too |
We need this too |
1 similar comment
We need this too |
Will never happen folks. Give up. |
+1 |
1 similar comment
+1 |
me too |
5 years later, still waiting 🤙 |
We need to check users' subscriptions because we don`t know if users definitely subscribe or not. we are not going to use this service if no progress |
+1 |
This is a deal breaker , please action this |
We'd like to have this too! |
Is this a planned feature @paulb777 ? |
In order to show users a list of subscribed topics (eg UI with the ability to remove active subscriptions) we have to do one of two things today:
I sorely miss a
Messaging.messaging().isSubscribed(to: topic)
like API in the FCM SDK for checking whether a topic is currently subscribed to by the current userThe text was updated successfully, but these errors were encountered: