Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gem for push notifications for Android and iOS

I am working on a project in Ruby 1.9.2 and Rails 3 and I am looking for a gem to send push notifications to my iOS app and to my Android app.

I have found one for iOS jtv-apns gem but as I have asked in this question, I haven't been able to make it work and I haven't received any answers yet. I have also found apn_on_rails but as the instructions are not for rails 3, I don't know if it is compatible.

For android, all I have found is c2dm_on_rails so far, but only works with ruby 1.8 and rails 2.

As suggested in this question, Urban ship is not an option for me right now. I would like to implement it myself or find a gem to help me do that.

Do you know any gem I can use for ruby 1.9 and rails 3 or a good tutorial I can follow?

like image 556
marimaf Avatar asked Nov 12 '11 21:11

marimaf


People also ask

Is Push Notification free for iOS?

Apple does not charge a separate fee for utilizing the push notification service. Your only cost is a server that will be sending the push notifications to Apple. There are third-parties that provide this servers and there is a fee for that.

Does iOS allow web push notifications?

Apple announced support for web push notifications for Safari on iOS starting in 2023. At the company's annual developer event WWDC in June 2022, Apple announced that this feature was coming to iOS.

Can Android emulator receive push notifications?

The emulator must enable the Google API for Google Play services. To resolve this issue, the mobile developer must create an emulator that uses Google API as the target OS.

Is there a push notification app?

Pushover makes it easy to get real-time notifications on your Android, iPhone, iPad, and Desktop (Android Wear and Apple Watch, too!)


1 Answers

I ended up using apn_on_rails the rails 3 branch. You can find a really good tutorial here

And for android I used speed_c2dm

like image 122
marimaf Avatar answered Oct 08 '22 00:10

marimaf