GCM and id handling
问题 I'm creating an app which uses Facebook and GCM. A user can use the app on multiple devices, a friend can send him GCM messages using his facebook id. On my server, I have a table which maps the facebook id to a gcm id. The table does not require the facebook id to be unique, so messages can be sent to multiple devices. In the docs, it demonstrates the following way to handle errors when sending a message: if (result.getMessageId() != null) { String canonicalRegId = result