I want to be able to send push notifications using Titanium on Android. However I get a back-end error whenever I try this, which I believe is to do with invalid credentials. I
I finally managed to get this to work. Basically the docs are heavily out of date.
The way I managed to get it to work is by linking the app to Firebase. From there I went to "Cog/ Settings" > "Cloud Messaging".
This shows your "Sender ID" (which is the same as your project number). For me this was a 12 digit number.
The page also shows a Server key and a Legacy server key. It does not seem to matter which one you use.
If you still receive the following error when pushing a notification:
Exception Type: GCM; Error Code: 3006; Error Message: The sender_id contained in the registration_id does not match the sender_id used to register with the GCM servers
simply uninstall the app and rebuild it.
SIDENOTE:
Linking your app to Firebase creates quite a few API keys automatically in your Google Console API credentials page named like "____ key (auto created by Google Service)".
The "Legacy server key" seems to match the one called: Server key (auto created by Google Service).
Note that just creating an API key yourself does not seem to work. It has to be the API key associated with Firebase.