Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Development

Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange

[PUSH] Yet another problem porting push

I have registered for Push evaluation, got email back.


I haven't done any changes to my code (I don't need to, right?). I use GCM.


After converting to apk, I put android.cfg inside BAR file next to my original apk. It looks like this:

<?xml version="1.0" encoding="utf-8"?>
<appid>XXXXX-<very long text></appid>


Then I sign application, deploy to phone. App tries to register for push, and in the logs I get:

05-04 14:07:45.715: ERROR/QNXShrimpClient(8548354): com.google.android.c2dm.intent.REGISTER error(10002) = ""
05-04 14:07:45.767: ERROR/GCMIntentService(16318681): Error registering for push: INVALID_SENDER


Where GCMIntentService is my own class and the last log message comes from onError method.


I have no clue what could be wrong, any help would be much appreciated.




Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: [PUSH] Yet another problem porting push

1) Your token prefix should be "bb-" instead of "bb_"

2) Have you added "Entry-Point-System-Actions: _sys_use_consumer_push" to the .bar's manifest?



Justin Jasmann | Android Application Development Consultant
Developer Relations
Posts: 48
Registered: ‎06-24-2010
My Device: Storm 2
My Carrier: Orange

Re: [PUSH] Yet another problem porting push

Hi Justin,


just to confirm:

1) I thought that token prefix is a custom string that we provide to distinguish bb ids from android ids. Am I wrong here? Nevertheless, I tried with "bb-" and it also failed.


2) Yes - it get's added automatically during conversion, probably because of my original AndroidManifest.xml content.


I think I might have found the issue though. In my push evaluation confimation email, it was written that my eval will last from May 3rd until Sep 3rd BUT when I log in to Content provider admin portal, it says that my evaluation is valid from Mar 05th until Mar 09th. Now, this is either EU/US formatting issue or the source of my problem, as this would mean that my evaluation was already expired when activated. 


I tried reporting it back to BlackBerryPushServices@blackberry.com but I didn't get any reply so far. Do you know if there is a better place to report such issues?




New Contributor
Posts: 6
Registered: ‎07-06-2012
My Device: Blackberry 9800
My Carrier: mtc touch

Re: [PUSH] Yet another problem porting push

I have the same problem! have you figured out a solution ?