How to get registered into GCM topics from javascript (for Chrome)
问题 Here is a nice documentation on how to implement Google Cloud Messaging (GCM) in Chrome. But I do not found any reference here or anywhere how to subscribe to a topic using javascript (for Chrome). Here I have found a reference how to do the task for Android: https://developers.google.com/cloud-messaging/topic-messaging#subscribe-to-a-topic Java code(Android) for subscribe to a topic in GCM: private void subscribeTopics(String token) throws IOException { GcmPubSub pubSub = GcmPubSub