Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 535
Chirag Rupani Avatar asked Dec 30 '25 03:12

Chirag Rupani


2 Answers

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

like image 155
rorra Avatar answered Dec 31 '25 17:12

rorra


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.

like image 41
0x4a6f4672 Avatar answered Dec 31 '25 17:12

0x4a6f4672