GCM Chrome tutuorial Missing a section?

57 views
Skip to first unread message

Lucas Holmquist

unread,
Aug 27, 2014, 1:20:16 PM8/27/14
to gcm-for-chr...@googlegroups.com
So this tutorial here,


i feel like it is missing the section talking about creating a "server" key like the android tutorial, http://developer.android.com/google/gcm/gs.html#access-key

or is this not needed anymore for third party servers sending notifications


Filip Gorski

unread,
Aug 27, 2014, 4:22:58 PM8/27/14
to gcm-for-chr...@googlegroups.com
Hi, Lucas,

Thanks for your feedback.

In order to send messages from your server to chrome.gcm you are meant to follow the GCM for Android instructions. That means your are meant to follow http://developer.android.com/google/gcm/index.html (which includes server key creation).

chrome.gcm.send is for sending messages from your client to the server, which is what we call upstream messaging, and for that one you don't need a special key.

We will be working on overhauling the documentation you are referring to in coming months.

Thanks.
Filip

Lucas Holmquist

unread,
Aug 28, 2014, 9:32:04 AM8/28/14
to gcm-for-chr...@googlegroups.com
thanks for the reply


On Wednesday, August 27, 2014 4:22:58 PM UTC-4, Filip Gorski wrote:
Hi, Lucas,

Thanks for your feedback.

In order to send messages from your server to chrome.gcm you are meant to follow the GCM for Android instructions. That means your are meant to follow http://developer.android.com/google/gcm/index.html (which includes server key creation).

yea,  didn't see this part in the other tutorial


I'm one of the developers for the UnifiedPush Server, https://github.com/aerogear/aerogear-unifiedpush-server, and we currently have the v1 chrome push stuff in there.  I'm about to move it over to the new API( using android gcm ) and was just checking what i needed to change.( as it turns out,  we can just reuse our android stuff!!! ) 

Filip Gorski

unread,
Aug 28, 2014, 7:41:27 PM8/28/14
to gcm-for-chr...@googlegroups.com
Great to know, Lucas.

Switching from chrome.pushMessaging to chrome.gcm is definitely a way to go. The latter shares the backend with Android, so if your server already pushes to GCM for Android you are there (and that is by design ;) ). Let us know if you need any help.

Thanks.
Filip
Reply all
Reply to author
Forward
0 new messages