I have a rails server and a backend. Is it possible to send a push message using my rails server to both iPhone and android app?
Yes, it is possible. Here are gems that I used recently in my projects: Android push service and Apple push service
They are well documented so you should not face big troubles about setup.
I created a gem in order to create a central push notifications, it supports iOS and Android at the moment, but i will add more platforms.
Maybe this will help you
here is the link: https://github.com/NicosKaralis/pushmeup
Try using grocer gem for ios push notifications. Thats pretty easy to setup and get going.
Related
I'm trying to create application for Android and iOS and, i want to use push notification on both the application. I'm going to have a server app that will be sending the notification.
but i am trying to APNS and Parse SDK it's common to use ,but i want GCM through push notifications on iOS ,can you please how can it possible ,any such information about GCM to iOS push notifications ,i am googling but i want some suggestions for GCM through iOS device notifications.Can you help me.thank you.
There is very good descriptive instructions in Google Cloud Messaging for iOS guide. It shows whole flow from registration of device token to receive push from server with code example.
After go through above guide, you may go for Setting up a GCM Client App on iOS and you are almost done to use GCM with iOS application
Update: GCM now supports IOS. See Grigo´s comment.
GCM is Android specific. If you want to avoid dealing with 2 different services for IOS and Android, you can use something like Amazon SNS for example. SNS now supports pushing cloud notifications to Android, IOS and Windows devices via the AWS Mobile SDK.
I'm developing an Android app and I need to implement a GCM service for it. The server works on Ruby on Rails 4 and it uses the gem rpush (I can't change the gem because this was already used by someone else to implement the equivalent service for iOS). I really have no idea on how to start on this, becasue I'm pretty new developing in Android.
Is there any tutorial out there that you could recommend? or what are the steps to implement this service in my server?
Thanks in advance.
Well, I finally decided to stop using rpush pretty much because the docs sucks. I am now using Parse to send push notifications. It works pretty well so that's my recommendation.
Hope it works for you guys!
Rpush provides API for sending push messages via GCM. Additionally you can get inspired by the existing code for APNS (iOS pushes).
You can check this blog post that contains a minimal working example of an Android App with Rails server:
http://mateuyabar.com/blog/android/rubyonrails/gcm/2015/05/13/Google-Cloud_Messaging-with-Ruby-On-Rails.html
Or check its source at:
https://github.com/mateuyabar/blog_gcm_and_ror
I have an application for for iOS, Android and Windows mobile.I want to send notifications to the application. AFAIK as someone new to this, I think that I need to send the notifications from my server to GCM server for Android and APNS for iphone, I have no idea for windows.
I was hoping if I can send the notifications directly to the phone (setting up a XMPP server , what the IM messenger usually use (JABBER,EJABBERD etc.)) without going to APNS of GCM .
EDIT : The application is an enterprise application so some customers don't want to share aur route their data across GCM or APNS servers.
Is that possible, please guide me to the same .
Thanks.
Take a look at https://github.com/Redth/PushSharp, It's a pushnotification service library for Windows, IOS and Android
Push notifications for Windows Phone: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff402558(v=vs.105).aspx
Or you can use a service like Parse.com that allows you to manage push notifications for all he platforms using one API.
The library does that for you, you first need to do some configuration Check here.
Look a the samples.
I would like to write an instant messaging mobile application with push notifications. One requirement is to have both an iPhone and Android version able to send push notifications between 2 devices regardless of the device type.
I am having trouble coming up with a best solution to send push notifications for the following 4 cases:
Android client -> server -> Android client.
Android client -> server -> iPhone client.
iPhone client -> server -> iPhone client.
iPhone client -> server -> Android client.
I have a few questions:
Did you find pushd simple to handle your push notifications? Did you run into any unforeseen issues?
What are the pros and cons between creating my own node.js server implementation and using pushd for the 4 cases above (minus learning more from doing it myself)?
Would it be simpler to use a different server implementation such as python or php through Apache?
Were there any resources you found to be critical to writing your own server implementation?
Is there a simpler suggestion for implementing push notifications between 2 cross-platform devices?
I've come across UrbanAirship and Pushwoosh but I don't think they apply to my use cases.
I apologize if this question seems to open-ended for SO but I have been struggling with this for the past few nights and am having a hard time coming up with these answers.
Thanks and I appreciate the help!
Check out Parse.com
Its amazing, and their push notification service is much simplier than creating your own.
Set up an endpoint, gated to a database for your push notifications and post to that service w henever necessary. For clientside code, see here for Android and here for iOS. If you'd like server code, leave a comment and I'll post an edit to this answer,
I want to implement push notifications on my application. I want to push directly from my servers, and thus cant use Google's C2DM or Xtify..
I learnt about the deacon project, but facing problems using it.
Firstly, my complete project is in Windows, and the Meteor server runs only in linux.. is there any work around?