GCM API key vs Sender ID

后端 未结 4 1823
灰色年华
灰色年华 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:44

    There are two keys or IDs on which GCM process rests upon. One is registrationID that is created at Android application side and sent to the Server application where API Key already stored. Message is push to the device using a combination of registration Id and API Key.

    The regisration ID is generated by GCM servers when android application makes request to them. Keeping the already created project ID (at Google dev console).

提交回复
热议问题