I am trying to get a simple PhoneGap application going on Android device. So, I've followed all the steps, created a project and the app successfully communicates with GCM servers and obtains registration ids using my project number.
The problem is that I can not communicate with GCM from the server side. I was originally doing this from Perl, but even curl example from GCM documentation returns "401".
They API access key is whitelisted, I've tried to delete it and create new one a few times. Tried even to use a browser key instead of server key. The same result: Unauthorized access.
And all the keys created from main (old version, not new Google Cloud) API console, as per current documentation. I could not find how to generate simple API access keys in Google Cloud Console.
As I've mentioned above, the GCM service is enabled for this project because clients can connect and obtain registration ids.
Any help where else to look at?