If I register multiple Android devices in C2DM, can I get multiple registration identifiers

As for C2DM, if I have a phone and another device (another phone, maybe GoogleTV, etc.) and I set up a C2DM server, do I get two different registration identifiers, which I can then use to send intentions to both devices ?

It seems that this could happen: I register one device and I get my ID. Then I register another device and I get another identifier that invalidates the first one. Is my assumption correct?

I don’t want to do a lot of development just to find out that a user account can only have one login ID at a time.

+3
source share
1 answer

Yes, you will receive different registration identifiers on each device. The Google account on the device is not used to register with C2DM. Registration ID is used to send a notification to a specific application on a specific device.

More information on how the registration identifier is designed can be found in this thread from the android-c2dmGoogle group .

An active Google account is required on the device, so the underlying C2DM transport is active (the same mechanism Google uses for Gmail and Market notifications).

+3
source

Source: https://habr.com/ru/post/1788586/


All Articles