NicosKaralis / pushmeup

This gem is a wrapper to send push notifications to devices. Currently it only sends to Android or iOS devices, but more platforms will be added soon. With APNS (Apple Push Notifications Service) you can send push notifications to Apple devices. With GCM (Google Cloud Messaging) you can send push notifications to Android devices.
http://nicoskaralis.github.com/pushmeup
MIT License
326 stars 120 forks source link

APN and GCM with Proxy #20

Open nuttao opened 10 years ago

nuttao commented 10 years ago

Your gem works great, but my server need to use proxy to connect internet. How can I do? Need configs in rails or in gem's parameters, please help.

NicosKaralis commented 10 years ago

never crossed my mind with this problem, i need to search on the matter (sorry for the delay)

muffl0n commented 9 years ago

For GCM it's sufficient to set a proxy like this:

GCM.http_proxy(addr="myproxy", port=8080, user="proxyuser", pass="proxypass")
GCM.send_notification(destination, data)

Unfortunately that does not work for APN.