GCM canonical id

前端 未结 4 1131
暖寄归人
暖寄归人 2020-12-01 21:14

When having multiple regids for 1 device GCM returns the canonical id error:

{\"multicast_id\":xxxx,\"success\":2,\"failure\":0,\"canonical_ids\":1,\"results         


        
4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 21:40

    The GCM response you included indicates that you sent a message to two Registration IDs. Both messages were received in the GCM service successfully. Only for the second message you got a canonical Registration ID.

    Since you get a response from Google for each request you send, you should know which Registration IDs were sent to Google in the request that triggered this response. The old Registration ID that you have to delete is the second Registration ID in that request.

提交回复
热议问题