检索Google云消息传递的Heroku App IP地址 [英] Retrieve Heroku App IP Address for Google Cloud Messaging

查看:121
本文介绍了检索Google云消息传递的Heroku App IP地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将Google Cloud Messaging与我的Heroku Apache PHP服务器集成,以便在新数据出现时允许推送通知将应用程序数据与服务器同步。但是,GCM目前的步骤要求服务器(Heroku App)的IP地址与Google Cloud Messaging集成。在Heroku开发人员控制台中,没有任何访问应用程序IP的直接方式。

I am attempting to integrate Google Cloud Messaging with my Heroku Apache PHP Server so as to allow for push notification to sync app data with the server as new data arises. However, the present step in GCM requires the servers (Heroku App's) IP address to integrate with Google Cloud Messaging. In the Heroku developers console there does not appear any direct way to access the apps IP.

如何访问Heroku App的IP地址?

How can I access the Heroku App's IP address?

推荐答案

我在heroku上实现了GCM(但是使用python),并且不需要访问dyno IP。然而,Maxim Leonovich如何在上面提到这是不可能的。但是有一个插件
我们基本上打开一个到gcm服务器的套接字连接并发送数据。
完成后,我们会收回所有错误和停用的设备。
推送显示在手机上。

I implemented GCM on heroku (but with python) and there is no need to access the dyno IP. However how Maxim Leonovich mentioned above it's not possible. But there is a addon proximo. We basically open a socket connection to gcm servers and send data. After we are finished we get all errors and deactivated devices back. The push appears on phone.

这篇关于检索Google云消息传递的Heroku App IP地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆