Android/Firebase - Check to see if you are subscribed to topic

前端 未结 1 1391
星月不相逢
星月不相逢 2020-12-16 20:05

I am wondering if there is a way to test to see if you are subscribed to a topic on the android side of things.

Basically, I am HOPING that all devices will

相关标签:
1条回答
  • 2020-12-16 21:08

    There is currently no way to check on the client side if they are subscribed to a topic.

    The behavior for subscribeToTopic is it would immediately subscribe to the specified topic, if it fails, it would retry on it's own (unless your app was killed). See my answer here.

    I think that forcing the onTokenRefresh call just to make sure that subscribeToTopic is too much. You could simply just call it in your initial activity if you want, that way, everytime the app starts, it sends the subscription request.

    0 讨论(0)
提交回复
热议问题