简体   繁体   中英

How are unique registration id's for GCM for each device generated?

I have to test my app for GCM multicast on emulators around 10 or more in number. For this I need to create 10 emulators that can provide me unique registration ids.

I tried cloning a single emulator with a google account and loading the userdata-qemu.img into new emulator. In this case the registration ids returned by the new emulator is same as the old one.

I tested the app on two separately created emulators with the same google account in which case they return different registration ids. Certainly GCM does not use account information for that.

I understand that registration id for GCM is generated from the " app package and device ". How does Google uniquely identify a device or emulator instance.

Also tried changing the uuid of the emulator provided in the emulator-user.ini file but of no use.

Certainly I can go about doing this manually , but it would be too cumbersome each time.

Any help would be appreciated.

Thanks

ID生成的确切算法是实现细节-尚未公开,Google可以随时更改它,并且依靠它是不明智的。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM