push notification to web-client from server in phonegap - android

I have two different kinds of clients in my phonegap application. When a client request some data to server, the other client should be sent some data and notification. What is the best way to implement this? My application should run both on android and ios. Please help

Maybe you are looking for something like this. Maybe this helps
https://github.com/phonegap-build/PushPlugin
http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/
and if you want something with php then take a look at this
http://mobile.dzone.com/articles/sending-android-push

Related

How to build a server for GCM

I know how to implement GCM in my App but I don't know how to build a server able to send notification to ALL the users.
I need something quite simple (just sending notification), could you advise me any services and tutorial in order to set up the server?
I wish something not to complex, because everything that I will need from my app is receiving whether simply notifications to display or to tell the app that some new data is available for downloading.
Thank you!!
Prerequisite for GCM Application
Google API Server Key
GCM RegId of the Android Device to communicate via GCM
If you get clear concept about GCM, please visit here
If you want to use java for server side then visit my answer.
Related Links:
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
Android Warriors
If you're using PHP, you could use this approach to send GCM message to your client refer this
You could setup your own local server on PHP using AMPP. refer this
Probably, the simplest way is to add a cloud endpoint module refer this. Then, write a simple service refer this that sends the messages. Finally, let Android Studio deploy it.

How can I integrate SQL Server and my android application with Push

A long time ago I've been reading and watching tutorials about Android, reading about Push Notifications and GCM, but I don't understand.
I have a Order's table in my SQL Server database and an Android application. On every order status update, the application must be notified.
But I don't understand how it works.
I've created an app by GCM in the developers.google, I've got the key, id, etc, but how do I do this integration?
Should I change my database? Should I create a ASP.NET system for notifications when I update my database?
I've tried the Azure push, but it provides a JavaScript or asp.net code. Why this one? Can anyone explain this to me?
I've implemented many codes from tutorials and internet, but there's no SQL Server and Android tutorial. I searched here, someone talked about using trigger, but I don't know how to integrate this.
You need to write a web service to sit in between the application and the database
You can find some information on web services Here
The database doesn't actually matter.
In order to achieve your goals, you need:
Regiester the user's device to GCM, and get his token.
Know when you need to send the Push.
Send a request to GCM in order to send the push to the device.
You can use any techonology you want, and if you use .NET, you might want to try PushSharp

Implement Android GCM on Ruby on Rails 4 server using rpush gem?

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

Phonegap and Parse.com Push Notifications android

I am creating an app using html,jquery,php and phone gap and i want to send push notification using parse.I don't know how to do that.
I have seen an example in SO But it is for ios. I need it for android. Will this work for android.
Please help me. Thank You.
Have a look at this answer I've just posted, I've just got the Android Parse PNs working:
How do I get Parse.com Push Notifications working in a Cordova/Phonegap Android app?
That will help you get the app to recieve push notifications. To trigger them from PHP you'll need to use the REST API or a Third Party PHP library:
https://parse.com/docs/rest
https://github.com/apotropaic/parse.com-php-library

What is the best approach for this project?

I'm planning to build an app for iOS and Android where the user has an account and can add friends. He can also post something, just like on facebook and all of his friends get a push notification and can react to it.
My question is: Which technologies do I need to use to accomplish this? A webservice with a database in the background? Can I do this with XAMPP?
Before going native, I wanna try out Appcelerator Titanium, any tips you can give me?
Thanks.
The simple way is "webservice with a database in the background" & your middleware should send the notification to platform server which will notify to individual devices for push notification.

Categories

Resources