GCM API key vs Sender ID

后端 未结 4 1832
灰色年华
灰色年华 2021-02-04 07:19

I am confused about GCM Sender ID and API key. I\'m responsible for building 3rd party server that will send notifications to Android app.

Which one do I have to store o

4条回答
  •  礼貌的吻别
    2021-02-04 07:40

    I've kinda figured it out on my own:

    1. API key is generated on console and is used by 3rd party server to authenticate/authorize with GCM.
    2. Sender ID is used by Android app to register a physical device with GCM to be able to receive notifications from GCM from particular 3rd party server.
    3. Registration ID is a result of registration of physical device to GCM with Sender ID.

提交回复
热议问题