用于将通知推送到 Apple ipad 的 Rails apns - 使用哪个 gem? [英] rails apns for push notifications to apple ipad - which gem to use?

查看:28
本文介绍了用于将通知推送到 Apple ipad 的 Rails apns - 使用哪个 gem?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望从 rails 3.0.3 应用程序向 Apple 推送通知.

I'm looking to push notifications to apple from a rails 3.0.3 application.

我发现了各种 apns"ish" gems,包括 apns_on_rails.

I have found a variety of apns"ish" gems including apns_on_rails.

其中一些看起来有点旧(1 或 2 年),目前还不清楚 2012 年使用的当前"版本是什么.

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.

根据我的标准,您能推荐使用哪一种吗?哪个是主流?维护哪个?
我不喜欢自定义 github 存储库,我正在寻找最好的、长期稳定的 gem 解决方案.

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.

推荐答案

https://github.com/PRX/apn_on_rails

我们维护它,我刚刚更新它现在与 rails 3 兼容.

We maintain it, and I just updated it to now be rails 3 compatible.

您需要将它添加到您的 gemfile 中,然后运行

You need to add it to your gemfile, and run

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.

这篇关于用于将通知推送到 Apple ipad 的 Rails apns - 使用哪个 gem?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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