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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:10:40+00:00 2026-06-13T00:10:40+00:00

I am started to exploring on GCM. Please clarify the following things. By Registering

  • 0

I am started to exploring on GCM. Please clarify the following things.

By Registering with GCM server using the SenderID (Project ID get it from google API console), the Different device will giving unique registration id. I have used the following code to send message from server to all the devices by adding registration id as deviceid in the devicelist . I got the registration id of device by logging in the logcat.

        Sender sender = new Sender("MY_API_KEY");



            Message message = new Message.Builder().collapseKey("1")
                    .timeToLive(3)
                    .delayWhileIdle(true)
                    .addData("message",
                      "this text will be seen in notification bar!!")
                    .build();

       MulticastResult result; 

ArrayList<String> devicesList = new ArrayList<String>();
             devicesList.add(deviceid1);

             devicesList.add(deviceid2);

            result = sender.send(message, devicesList, 1);

Is it right way to send message like above mentioned?

If that’s the case how can design the code it will work after release the particular application? how can i get the registration id of all the devices after releasing?

  • 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-13T00:10:42+00:00Added an answer on June 13, 2026 at 12:10 am

    Your server needs to keep track of all the registration ids from the devices. Therefore, you need a database table to store those registration ids. Then you need to expose a web service, or a HTTP POST entry point for your clients to upload their registration ids.

    After a device successfully register with Google GCM server, you will receive the registration id in the onRegistered() callback method in GCMBaseIntentService. This is where you want to upload the registration id to your server.

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

Sidebar

Related Questions

I've recently started exploring using AJAX for a small project, and I've had reasonable
I've just started exploring using svgs within rails. I want to dynamically update a
I started exploring CouchDB and I am interested in following: Is there or will
I'm new to using the parallel packages and have started exploring them in a
I started exploring Google Guice today to do dependency injection in my application. I
Just started exploring the API. I'm trying to get some documents' metadata via the
I've recently started exploring lambda expressions, and a question came to mind. Say I
I am more into front end development and have recently started exploring Backbone.js into
Started using Visual Studio 2012 RC since yesterday, We have one WCF solution. Whenever
Started learning algorithms. I understand how to find theta-notation from a 'regular recurrence' like

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.