How to know wether we have already subscriped to a topic in Firebase Cloud Messaging?
You can get token
String token = FirebaseInstanceID.getToken();
Log.d(TAG,token);
and do a Get to https://iid.googleapis.com/iid/info/token
If using curl
curl -X Get -H"Authorization:key=serverAPIkey" "https://iid.googleapis.com/iid/info/token?details=true"
to see all of the device's subscribed topics
Find out details about a client app instance's subscriptions, including each topic name and subscribe date. See get information about app instances
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With