Where do I find my GCM sender ID?

£可爱£侵袭症+ 提交于 2019-12-02 20:08:37

问题


I'm trying to setup Pushwoosh as Parse is about to shut down. Pushwoosh is asking for my API Key and my GCM Sender ID. I didn't originally setup Parse and am not overly familiar with Google's developer portal.

Where do I find this information for my project?

I tried the API Key listed here "https://console.cloud.google.com/apis/credentials?project=MYPROJECT" but I see nothing about a GCM Sender ID.

Google is yelling at me on just about every page I find to upgrade to Firebase too but I don't have the time or need to migrate to that at the moment.


回答1:


With the new rebranding of GCM (Google Cloud Messaging) to FCM (Firebase Cloud Messaging) finding the "GCM Sender Id" and the "API Key" has changed.

To get them:

1- Login to https://console.firebase.google.com


2- Create a new project for your app (or select your project and skip to step 3):



2B- and fill the data on the popup



3- On the 'Overview' screen, select "Add Firebase to your Web App" (or skip to step 4, if previously added)



3B- Just dismiss the resulting popup:



4- Go to the Project Settings page:



5- And finally to the "Cloud Messaging" tab. Your "(GCM) Sender Id" and the "Server (API) Key" are there:




回答2:


In case you already have an existing project do this first:

Click on import google project (blue button on the right side of the screen)

Be sure to choose the correct country and click on "add firebase" (bottom right button)

After that please do the following as the answer above :)



来源:https://stackoverflow.com/questions/38863078/where-do-i-find-my-gcm-sender-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!