Reputation: 33
I subscribed and later unsubscribed a device from a topic in Firebase Cloud Messaging.
Now when I try to subscribe again nothing happens. On the device the code FirebaseMessaging.getInstance().subscribeToTopic("topicName")
is executed and the Log prints no errors.
However if I make a GET request to https://iid.googleapis.com/iid/info/regID/?details=true with the registration id of my device only the other topics are shown, not the one I resubscribed to.
Update: Ok with another topic I actually could resubscribe, but the first one still won't subscribe again. Still no errors or log feedback during execution. Anyone an idea what this could be? Are there maybe any formatting rules for the topic name as mine is an automatically generated ID?
Upvotes: 0
Views: 913
Reputation: 33
So...the missing topic kind of resurfaced.
Apparently it was a kind of random error either in my setup (more likely) or in FCM (less likely).
However I'm still 100% sure it did not work for at least a week with one specific topic name and now it's working fine with all my topic names.
Upvotes: 1