Rails 3 and apple push notification service

前端 未结 3 574
时光说笑
时光说笑 2020-12-31 18:38

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 a

相关标签:
3条回答
  • 2020-12-31 18:55

    In rails 3, there is no config.gem... Open up your Gemfile:

    gem 'apple_push_notification', :git => 'http://gemcutter.org/path_to_that_gem_on_gem_cutter.git'
    
    0 讨论(0)
  • 2020-12-31 18:59

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

    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

    0 讨论(0)
  • 2020-12-31 19:05

    I've written an apn_on_rails replacement called Rpush specifically targeted at Rails 3. I've also added a bunch of extra features like persistent connections to the APNs (as recommended by Apple). Frequent connects/disconnects may get you banned from the APNs, which is how apn_on_rails currently works.

    Rpush: https://github.com/rpush/rpush

    0 讨论(0)
提交回复
热议问题