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.

asked Jul 3, 2014 at 17:11
2
  • Did you ever solve/figure out this issue? Commented Aug 7, 2014 at 19:15
  • Yep, just answered! 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.

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

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.