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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:25:17+00:00 2026-06-17T12:25:17+00:00

I encountered a problem with having multiple accounts of my own custom type. I

  • 0

I encountered a problem with having multiple accounts of my own custom type.

I use GCM (Google Cloud Messaging) to recieve messages from our application server. Now since you need to make your own implementation of GCMIntentService extending GCMBaseIntentService, you need to override onRegistered(Context context, String regId) , the problem here lies in that I want to send saved data on the account (an auth token) to our application server in that method. So that the application server knows which device/registration id belongs to a certain account in our own database.

How am I going to find out for which account I just registered to GCM with inside the onRegistered() method? (I couldn’t find any similar question =( )

  • 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-17T12:25:18+00:00Added an answer on June 17, 2026 at 12:25 pm

    You will have to do that manually. GCM doesn’t care about user accounts. It only cares about the device itself. In your case I would register device with GCM once and then reuse the same registration ID for all your users, meaning that when sending GCM notification you will have to include some identification data to know for which user you are sending that particular notification.

    So in a nutshell:
    register your device with GCM once and then send registration ID you receive + all custom user accounts IDs to your application server. When sending notification, add user ID into notification message and then use it to determine to which custom account user it is intended.

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

Sidebar

Related Questions

the problem I am having is that I am trying to use a custom
I encountered a problem after having more than one texture in my engine. My
I encountered a problem when I tried to use java from matlab. I read
I'm having a problem that I have encountered before, but I still don't know
I encountered the problem of having the same .jar (for my case, el-api.jar v2.1)twice
Having an odd problem printing an API-generated (V3) Google Map from Internet Explorer 7
i encountered a problem using the apache commons-net telnet api, and hope you can
I encountered a problem closing my javaw.exe process. I like to do it in
I encountered a problem dealing with UTF-8, XML and Perl. The following is the
I encountered a problem. I noticed that a Property (say MyProp ) in my

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.