-3

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!!

Thomas
  • 45
  • 4

3 Answers3

2

Prerequisite for GCM Application

  1. Google API Server Key
  2. 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:

  1. Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
  2. Android Warriors
Community
  • 1
  • 1
Md. Sajedul Karim
  • 7,031
  • 3
  • 56
  • 81
  • Thanks for your link. I didn't read it before. I will tell you later after read about this :) – Md. Sajedul Karim May 15 '16 at 18:36
  • 2
    @Thomas, Thanks a lot about telling about OneSignal. Last night i completed OneSignal in android. It's really fantastic things. If you want to learn about OneSignal visit my post http://stackoverflow.com/questions/37249393/onesignal-get-user-id-from-android – Md. Sajedul Karim May 16 '16 at 11:29
1

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

Community
  • 1
  • 1
Elye
  • 41,569
  • 37
  • 154
  • 357
0

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.

dev.bmax
  • 8,093
  • 3
  • 29
  • 39