I need a little help checking whether I'm using the wrong credentials...
The FCM docs refer to using the Instance ID APIs to to perform basic topic management tasks. I would like to be able to manage sub/unsubscriptions for our Android apps on the server side (a Node process), but I'm just starting with the most basic request first - getting information about app instances. (
https://developers.google.com/instance-id/reference/server#get_information_about_app_instances) Each attempt receives a 401 Unauthorized response.
The Instance ID docs linked above require the "IID_TOKEN" in the URL, and "key=YOUR_API_KEY" in the Authorization header.
For "YOUR_API_KEY" I am using the API Key given in the Firebase console (I have also tried the Android API key from Google developer console from before the project was imported into Firebase).
For "IID_TOKEN" I'm using the registration token which is returned in the Android app when Firebase registers and I send to the server.
Are these wrong?