我正在使用rails 4.0.0,我正在尝试使用google云消息传递forroroids。
我已经尝试过使用了 https://github.com/dondeng/gcm_on_rails(有问题,而不是用于rails 4.0) https://github.com/spacialdb/gcm(ssl错误) ... github.com/push-notification/crusade_rails(太复杂,我认为它使用另一个宝石) ... github.com/ileitch/rapns(我认为它使用/ spacialdb / gcm gem,我无法找到发送方法)
哎呀,所有人都失败了......我只想要一个简单的宝石来发送机器人的通知(复数)。 我应该尝试自己使用gcm吗?
谢谢你
编辑:
我再次从头开始尝试/ spacialdb / gcm,
它给了我错误代码401,从我看到的故障排除:
Authorization header missing or with invalid syntax.
#since i am using the gem, dont think this is the problem
Invalid project number sent as key.
#i am not sure if it is the Project Number or the API KEY, however i tryed the 3 options
Key valid but with GCM service disabled.
#dont think soo, cause on APIs, Google Cloud Messaging for Android appears ON
Request originated from a server not whitelisted in the Server Key IPs. #I try both on localhost and on heroku