3

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.

2
  • Did you ever solve/figure out this issue?
    – you786
    Commented Aug 7, 2014 at 19:15
  • Yep, just answered!
    – settheline
    Commented Aug 7, 2014 at 19:19

1 Answer 1

4

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.

2
  • I am attempting to integrate GCM with Heroku as well. Is there a guide or proper methodology to do so?
    – Sauron
    Commented 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
    Commented Apr 13, 2015 at 21:48

Not the answer you're looking for? Browse other questions tagged or ask your own question.