Alastair
Alastair

Reputation: 6114

Are GCM subscription IDs and instance IDs the same thing? (subscribe to topics via web)

I'm trying to set up GCM for HTML5 push notifications through Chrome. I want these subscriptions to use topics, so that I don't have to maintain a list of subscribed IDs myself. However, all of the topic documentation I can find refers to subscribing through the iOS and Android APIs, but not through the web.

I found documentation on relationship mapping that makes it seem like I can control topic subscriptions by sending requests from my server, but it requires an instance ID. The documentation I've been able to find for Chrome web notifications talks about a subscription ID.

Are they the same? i.e., could I send my subscription ID to my server, to then forward onto the GCM server API? Or are the instance ID and subscription ID two different things? They don't look the same in the examples provided (the instance ID start xxxxxx:yyyyy) so I'm concerned this won't work.

Upvotes: 0

Views: 165

Answers (1)

Alastair
Alastair

Reputation: 6114

To answer my own question: they are in fact one and the same. Unfortunately, it seems that topics do not work with Chrome push notifications. The API displays the topic message as being sent, but the browser never receives it.

Upvotes: 0

Related Questions