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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:48:52+00:00 2026-05-23T23:48:52+00:00

[UPDATE] (when you read my question this is good to know) I had a

  • 0

[UPDATE]
(when you read my question this is good to know)
I had a small programing bug and now its kind of working. However both apps on the phone are receiving the same message so there is something i forgot to do

[END UPDATE]

I have a c2dm app and server set up for month and everything works grate.
I have 14 users/friends registered and all pushes works find

I run in to some trouble when I created a sandbox on another computer running the next version of the app and server.

On the sandbox i have changed the package name on the app.
On my phone i have both versions installed fine and dandy.
Only difference is the sandbox version app is communicating with sandbox server (of course).
why is the wrong c2dm app on my phone getting the message?

Now,
Why is messages from sandbox app being received by the non-sandbox app?

For a amateur programmer like me the documentation for c2dm is sometimes hard to understand.
Im confused about the:

public static final String EXTRA_APPLICATION_PENDING_INTENT = "app";

Should I write the package name here?
Something has to uniquely identify the two apps right?

Another thing i cannot find an answer/documentation for is the registration_id.
I imagine that a phone only have one registration_id but can have multiple c2dm apps?
This was my assumption, gladly correct me if im wrong.

im confused if the problem is in the the way i handle registration_id or the way i send push messages. dont know where to begin here?

[UPDATE]…

    <receiver android:name="com.google.android.c2dm.C2DMBroadcastReceiver"
        android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
        <!-- Receive the actual message -->
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <category android:name="com.bent.blaster" />
        </intent-filter>
        <intent-filter>
        <!-- Receive the registration id -->
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />
            <category android:name="com.bent.blaster" />
        </intent-filter>
</receiver>

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.bent.blaster" 
          android:versionCode="1" 
          android:versionName="0.52" 
          android:installLocation="preferExternal">
    <permission android:name="com.bent.blaster.permission.C2D_MESSAGE" android:protectionLevel="signature" />      
    <uses-permission android:name="com.bent.blaster.permission.C2D_MESSAGE" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />      
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" /> 
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-sdk android:minSdkVersion="8" />
  • 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-05-23T23:48:53+00:00Added an answer on May 23, 2026 at 11:48 pm

    I think the problem i had was because for a short time both apps had the same reg_id. That changed when i 24 hour later uninstalled/reinstalled one of them. Bit confusing at first but after talking to Google Team it’s clear now and everything is working. Thanks for your time

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

Sidebar

Related Questions

Update: Please read this question in the context of design principles, elegance, expression of
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
I've read over this question and I think that is a great start, but
Update: Solved, with code I got it working, see my answer below for the
This question is NOT about race-conditions, atomicity, or why you should use locks in
Over vacation I read Pat Helland's Life Beyond Transactions (yes, vacation was that good
From all the articles I've read so far about Mochiweb, I've heard this over
[Update - Sep 30, 2010] Since I studied a lot on this & related
I just happened to read jQuery Intellisense Updates from Microsoft and was wondering if

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.