We had the opportunity to perform remote screen sharing support for one of our clients. Here's a summary of what we learned:
- Their Google Server API Key, created months ago, got a 401 Unauthorized error about 4 days ago and no longer works
- They showed us that the Google Cloud Messaging project API was enabled
- They showed us that the key had no restrictions
- Creating a new key via Google's Cloud Console UI actually did not work:
- Steps:
- 2. Make sure Google Cloud Messaging is enabled in the Library tab.
- 3. Visit the Credentials tab, click "Create credentials", click "API Key", and copy and use the key as-is without any restrictions.
- Following the steps above, the key still had a 401 Unauthorized error
- Following the instructions
here on our documentation seems to generate a valid working key (these steps work for web push as well)
- In step 1.3, our client tried using an Android package name of "Push.Notification" for his key; the resulting generated key actually did not work and got a 401 Unauthorized error
- We tried step 1.3 again using an Android package name of "test.test"; the resulting generated key worked successfully