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

  • Home
  • SEARCH
  • 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 8719553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:49:38+00:00 2026-06-13T06:49:38+00:00

I am trying to use the GCM service in my android app. For that,

  • 0

I am trying to use the GCM service in my android app.

For that, I used the android documentation from http://developer.android.com/guide/google/gcm/gcm.html

I created the client side registration process with the sender id etc and the server side application where I am using the registration id and the sender id to send messages.

When I am installing the app in my phone through Eclipse, the push notifications works fine, so the sender id i have is right.

Then, when i export the apk file with Eclipse and install it in my phone, I am getting the error message that the SenderId is wrong

MissmatchedSenderId

Anyone has an idea whyI am getting this.

I have read those topics:

Why do I get "MismatchSenderId" from GCM server side?

When sending messages using GCM, I keep getting the response 'MismatchSenderId'

But the strange thing in my case is that everything works fine before exporting the app as apk and then I have this problem.

Any idea is mostly wellcome.

  • 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-13T06:49:39+00:00Added an answer on June 13, 2026 at 6:49 am

    I actually had the same problem, and was researching more than 10 hours.

    I finally found out the problem!
    Nothing related to the Server API key or Browser API Key or SenderID.
    The problem was the Google documentation:

    final String regId = GCMRegistrar.getRegistrationId(this);
    if (regId.equals("")) {
      GCMRegistrar.register(this, SENDER_ID);
    } else {
      Log.v(TAG, "Already registered");
    }
    

    Google says that you have to call the getRegistrationId function and only if the id is empty call register!
    Which did not work for me at all… when I did that I always got back MismatchSenderId when sending to this regId.

    My solution was:
    Always call

    GCMRegistrar.register(this, SENDER_ID);
    

    and when the function

    protected void onRegistered( Context c, String regId )
    

    is called save the regId in my server database.

    if I do it this way, all works fine!

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

Sidebar

Related Questions

I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I'm trying to implement GCM to my app in Android. The server and client
I'm trying to build PhoneGap android application which gets GCM messages. I used sample
I am trying use a from a multi-dimensional array that I create in another
I am trying use the onClick() function in an activity for an android app.
I'm trying to use the free Google App Engine as a backend for Google
I was trying to use GCM to have push-notification in my app. I called
I am trying use a Java Uploader in a ROR app (for its ease
trying to use hibernate with my web app and getting following exception: Initial SessionFactory
Trying to use Powershell to script the removal of specific custom errors from 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.