Welcome!

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™ Runtime Development

Reply
Developer
mstawick
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"?>
<android>
<push>
<appid>XXXXX-<very long text></appid>
<ppgurl>http://cpXXXXX.pushapi.eval.blackberry.com</ppgurl>
<tokenprefix>bb_</tokenprefix>
</push>
</android>

 

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.

 

Michal

 

Please use plain text.
BlackBerry Development Advisor
jjasmann
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

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.
Developer
mstawick
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?

 

Thanks,

Michal

Please use plain text.
New Contributor
Kamix
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 ?

Please use plain text.