我正在 Ruby 1.9.2 和 Rails 3 中开发一个项目,我正在寻找一个 gem 来向我的 iOS 应用程序和 Android 应用程序发送推送通知。
我找到了一个适用于 iOS 的 jtv-apns gem 但正如我在这个问题中所问的那样,我还没有无法让它发挥作用,我还没有收到任何答复。
我还找到了 apn_on_rails 但由于说明不适用于 Rails 3,我不知道是否可以是兼容的。
对于android,到目前为止我发现的是c2dm_on_rails,但仅适用于ruby 1.8和rails 2。
正如本问题,城市船舶目前对我来说不是一个选择。我想自己实现它或找到一个宝石来帮助我做到这一点。
你知道我可以用于 ruby 1.9 和 Rails 3 的任何 gem 或者我可以遵循的好教程吗?
I am working on a project in Ruby 1.9.2 and Rails 3 and I am looking for a gem to send push notifications to my iOS app and to my Android app.
I have found one for iOS jtv-apns gem but as I have asked in this question, I haven't been able to make it work and I haven't received any answers yet.
I have also found apn_on_rails but as the instructions are not for rails 3, I don't know if it is compatible.
For android, all I have found is c2dm_on_rails so far, but only works with ruby 1.8 and rails 2.
As suggested in this question, Urban ship is not an option for me right now. I would like to implement it myself or find a gem to help me do that.
Do you know any gem I can use for ruby 1.9 and rails 3 or a good tutorial I can follow?
发布评论
评论(2)
我最终使用了rails 3分支的apn_on_rails。你可以在这里找到一个非常好的教程
,对于android我使用< a href="https://github.com/sghael/speedy_c2dm">speed_c2dm
I ended up using apn_on_rails the rails 3 branch. You can find a really good tutorial here
And for android I used speed_c2dm
使用 Prowl iOS 客户端并
prowler gem
http://www.prowlapp.com
如果有人知道更新的更好解决方案,请发表评论!
Use Prowl iOS client and
prowler gem
http://www.prowlapp.com
If someone knows a better solution that is up2date please post as comment!