05-04-2013 08:17 AM
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.
05-06-2013 02:20 PM
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?
05-06-2013 02:37 PM
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?