简体   繁体   English

rails apns for push notification to apple ipad - 使用哪个gem?

[英]rails apns for push notifications to apple ipad - which gem to use?

I'm looking to push notifications to apple from a rails 3.0.3 application. 我想从rails 3.0.3应用程序向Apple推送通知。

I have found a variety of apns"ish" gems including apns_on_rails. 我发现了各种各样的apns“ish”宝石,包括apns_on_rails。

Some of them seem a bit old (1 or 2 years) and it is very unclear what would be the 'current' one to use in 2012. 其中一些看起来有点旧(1年或2年),目前还不清楚2012年会使用什么“当前”。

Can you recommend which one to use given my criteria? 根据我的标准,您能推荐使用哪一个吗? Which is mainstream? 哪个是主流? Which is maintained? 哪个维护?
I dislike custom github repositories and am looking for the best stable longer-term gem solution. 我不喜欢自定义github存储库,我正在寻找最稳定的长期宝石解决方案。

我更喜欢Grocer到APN的轨道,如果你问我,它更简单易用,并且不需要数据库迁移或rake任务来做一些基本上像使用格式化的JSON命中Apple服务器那样简单的事情。 ..

https://github.com/PRX/apn_on_rails https://github.com/PRX/apn_on_rails

We maintain it, and I just updated it to now be rails 3 compatible. 我们维护它,我刚刚将它更新为rails 3兼容。

You need to add it to your gemfile, and run 您需要将它添加到您的gemfile中,然后运行

rails g apn_on_rails:install
rake db:migrate

you also need to provide all kinds of certs and credentials, as you would expect, but that is all in the readme. 您还需要提供各种证书和证书,正如您所期望的那样,但这一切都在自述文件中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM