I'm looking at using GCM to send notifications from my rails app to an Android app. The getting started guide says:
In the resulting configuration dialog, supply your server's IP address.
I'm using Heroku, so the IP address is changing frequently correct? Can I still use GCM? Was looking at using the rails gem and I couldn't find any documentation related to Heroku.
-
Did you ever solve/figure out this issue?you786– you7862014年08月07日 19:15:52 +00:00Commented Aug 7, 2014 at 19:15
-
Yep, just answered!settheline– settheline2014年08月07日 19:19:02 +00:00Commented Aug 7, 2014 at 19:19
1 Answer 1
The answer to this is that you don't NEED to supply IP addresses. It's simply whitelisting those addresses so you can control which IP's use your GCM implementation. In the case of Heroku where the IP address isn't known ahead of time, you can just NOT enter any IP's when setting up GCM. I implemented GCM with Heroku and it's working beautifully.
-
I am attempting to integrate GCM with Heroku as well. Is there a guide or proper methodology to do so?Sauron– Sauron2015年04月09日 00:34:24 +00:00Commented Apr 9, 2015 at 0:34
-
The documentation is a little sparse for GCM (something I've been meaning to help out with). Are you speaking of a guide for setting up GCM itself, or for the server side ruby work?settheline– settheline2015年04月13日 21:48:14 +00:00Commented Apr 13, 2015 at 21:48