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 8989253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:12:42+00:00 2026-06-15T22:12:42+00:00

I am Trying to fetch and push A notification (To inform the device to

  • 0

I am Trying to fetch and push A notification (To inform the device to connect to the data source because it has been changed/Updated)

I read A lot of tutorials about it , and tried to apply it to help me in my case , but really i faced some problem understanding the GCM HOW IT Works

I’ve register at https://code.google.com/apis/console and take the SENDER ID AND APIKEY

Now I’ve Some Questions :

  1. do you register the device to the service every time we start the application or only for the first time ?

  2. do we use GCM for (only notify the device something happens) or to (notify and get the information about whats is changes) ?

  3. why this operation need (Client And Server)
    I mean (Client) it’s OK Because he’ll receive the push notification ,, but (Server What it Means Here) 🙁 ,, because i think the server here will be the Google it self to notify the device

  4. In this Case When We Use A APIKEY

the Idea Is :

I’ve SQL Server Database on my web-site and have small android application (Dealing With it) with two users
need when any user Add A record to the database notify the other user

Thanks In Advance ,,

Regards 🙂


  • 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-15T22:12:44+00:00Added an answer on June 15, 2026 at 10:12 pm

    1) You register with GCM only when you need to. E.g. When you call

    GCMRegistrar.getRegistrationId(appContext);
    

    And it returns a blank string. Typically this happens the first time you launch your app.

    2) It depends on what the data you are trying to is and whether or not it will fit within the 4K payload limit. Take a look at the Send-to-Sync vs. Messages with Payload Google Help topic.

    3) Your server is the server that sends the message to the GCM servers. The GCM servers then send the message down to the apps. Take a look at this blog post I wrote for a service that I helped create: http://blog.andromo.com/2012/how-does-airbop-push-messaging-work/ It should help explain how this works. In the explanation you can just substitute our servers with your own.

    4) You send your API key as part of your message to the GCM servers as detailed here: http://developer.android.com/google/gcm/gcm.html#request

    So in the following request:

    Content-Type:application/json
    Authorization:key=AIzaSyB-1uEai2WiUapxCs2Q0GZYzPu7Udno5aA
    
    {
      "registration_ids" : ["APA91bHun4MxP5egoKMwt2KZFBaFUH-1RYqx..."],
      "data" : {
        ...
      },
    }
    

    Authorization: key=YOUR_API_KEY

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

Sidebar

Related Questions

I'm trying to fetch data from a page that resides on an intranet. The
I'm trying to fetch some JSON data from my server like so: var a
I'm trying to fetch data from a div (based on his id), using PHP's
I'm trying to fetch objects from core data that are not in a given
So I'm trying to fetch data in a many-to-many relationship. So far I have
I am trying to fetch data from DB and loading the DB with the
I am trying to dynamically fetch the data from a PhP module, load it
Been trying to fetch documents from a collection, and the documents contains nested documents.
when trying to fetch data from a tornado GET method, if we need a
I'm trying to fetch some data from a database. I want to select an

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.