简体   繁体   中英

Push notifications to mobile applications in Rails 3

I am working on a project in Ruby 1.9.3 and Rails 3 and I am looking for a gem to send push notifications to my iOS app and to my Android app.
I found speedy_c2dm for android worth useful. But,I am concerned about as mentioned in Migration to GCM :

Android Cloud to Device Messaging (C2DM) is deprecated. C2DM developers are strongly encouraged to move to Google Cloud Messaging (GCM)

Does speedy_c2dm support GCM ? Is there any other gem that supports new GCM ? Also, I want to know what is difference between speedy_c2dm and c2dm ?

Both speedy_c2dm and c2dm are just two libraries to send push notifications by using C2DM, they are written by different persons, they both work and there are not major differences, in theory speedy_c2dm should be faster, but there are not benchmarks at the moment.

Instead of implementing C2DM, you should implement GCM :)

There are many gcm gems, the most popular is gcm but last commit was 5 months ago:

gcm

gcm_on_rails

pushgcm

simple_gcm

simple-gcm

higcm

speedygcm

我刚刚发布了支持APN和GCM的新版本的rapns: https//github.com/ileitch/rapns

Google "Cloud To Device Messaging" (c2dm) is called now "Google Cloud Messaging" (GCM). The old c2dm_on_rails gem has been replaced by a gcm_on_rails gem, and the speedy_c2dm gem has been replaced by the speedy_gcm gem. gcm_on_rails is similar to the popular apn_on_rails for Apple Push Notifications. Speedyc2dm and gcm_on_rails are both wrappers used to access the GCM API .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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