Registration confusion Android GCM

后端 未结 5 1000
忘掉有多难
忘掉有多难 2021-01-02 07:10

I am trying to migrate to GCM in Android, C2DM now being deprecated. The registration process described here is different from registration describ

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 07:23

    The Thing I like most in GCM is the RegID we will get from GCM server,it is not only an ID its an Address of this application on this Device. So this time you don't need to send a device Id to server along with your Registration Id as per was in C2DM.

    In C2DM every time you request a registration id you will get a new ID.

    But in GCM RegId generated by using your application package along with some device id so if you will request for Registration Id again and again you will receive the same RegId.

    And if you uninstall an application and will install it again still GCM server will give you the same Registration Id.

    So one Registraion Id will do no need of any Device Id to send to server.

提交回复
热议问题