Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8920497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:17:02+00:00 2026-06-15T06:17:02+00:00

I have Android client where the user talks to another user (or X users)

  • 0

I have Android client where the user talks to another user (or X users) and for each new message received is notified “new message arrived”.The messages are managed in a PHP web server that should send the notifications to the client Android.

I’ve been using Google Cloud Messaging that makes requests PUSH by our web server to our client Android, through Google’s servers. The work seems straightforward.

The question is: how does our web server to “wake up” and send notification when appropriate? What is the best way to do this?

In the case of notification of a new message from a user X, the server what should do to activate?

I can not imagine a basic approach except that the polling on the server!
Any idea?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:17:04+00:00Added an answer on June 15, 2026 at 6:17 am

    See this it is the complete tutorial

    http://developer.android.com/guide/google/gcm/gs.html

    and
    

    http://developer.android.com/guide/google/gcm/gcm.html#arch

    Thanks

    when device Y starts app, call a service to save dev.ID to server first time.
    now, send a dev.Id to server with every message.
    on server, when message will receive fire the notification with dev.Id and Message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Android client app that communicates with server using Socket . On my
I have and android client, that uses ksoap to communicate with a wsdl web
I have dynamic listview on my android client app that receive data from remote
I have c++ socket server and android client. Server constantly sends data to the
I have a simple client-server app on android. the android service communicates with the
I have a client and a server app on Android (that uses ZeroC -
I currently have a Service in Android that is a sample VOIP client so
Actually,i have do a test with the server.c and client.c in the android emulator(ps:they
I have a C/S solution, which take Android as its client and PHP as
I have a some text on an android client, I want to send it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.