轨道3和苹果推送通知服务

轨道3和苹果推送通知服务

本文介绍了轨道3和苹果推送通知服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人能够使用Rails 3推送通知发送到iPhone?
和与导轨2.工作我新的轨道,我一直没能做出任何一方的工作。

Has anybody been able to send push notification to iPhone using rails 3 ?APN on rails and samesoffes plugin only works with rails 2. I am new to rails and i have not been able to make either of them work.

下面是我遇到的错误:

APN on Rails的:

APN on Rails :

试图替换

ruby script/generate apn_migrations

通过

rails generate apn_migrations

有:

对myApp /配置/ environment.rb中:5:
  `需要':没有这样的文件加载 -
  apn_on_rails(LoadError)

我也没能运行配置config.gem'apn_on_rails'(config.gem:找不到命令)

I also did not manage to run the configuration "config.gem 'apn_on_rails'" (config.gem: command not found)

Samsoffes插件:

Samsoffes plugin :

我没能CONFIG宝石:

I did not manage to config the gem :

config.gem "apple_push_notification", :source => "http://gemcutter.org/"

给我:

:没有这样的文件或
  目录

任何帮助将大大AP preciated!

Any help would be greatly appreciated !

谢谢,
文森特

Thanks,Vincent

推荐答案

我有同样的问题,我用了一个Rails3中分支

I had the same problem, I had used a rails3 branch

创业板apn_on_rails',:git的=>'https://github.com/natescherer/apn_on_rails.git',:支=>'Rails3中

gem 'apn_on_rails', :git => 'https://github.com/natescherer/apn_on_rails.git', :branch => 'rails3'

这解决了我的问题,我写的详细信息到我的博客

This solved my problem and I wrote the details to my blog

http://yekmer.posterous.com/how-to-send-iphone-push-notifications-in-rail

这篇关于轨道3和苹果推送通知服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 01:08