Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
05-01-2014 04:05 PM - edited 05-02-2014 10:31 AM
With much help from gbeukeboom I was able to port my Android app to Blackberry 10 and get it to register successfully with the Blackberry Push service. The Android runtime on the BB10 intercepts the app's attempts at Google registration and replaces the registration ID with an 8 digit Blackberry identifier.
I believe I have our server pushing to the device but now I'm not seeing any notifications coming in. Am I to assume that the runtime works the same way and the device knows to channel the incoming notification via the Android code for catching an incoming notification? I have a C2DMBaseReceiver class with an "OnMessage" method, but it's not firing after I send a notification to the device. How does the notification "catch" work?
05-02-2014 10:53 AM
My server is receiving "1001\" desc=\"The request has been accepted for processing.\" when I do the BIS push, so it seems like it's going out. It just doesn't seem to be getting to the device.
When it came to registering, it seemed to me that it was undocumented that the runtime looked for the following line of code: "final String token = intent.getStringExtra("registration_id");"
Is there a similar,specific line of code that it's looking for for an incoming notification?
05-06-2014 04:50 PM
As long as the standard android configuration file is added as indicated in the doc below, you should be able to receive pushes in the app. Can you please verify this in your app?
05-07-2014 09:38 AM
Yes, the config file is present. The device is registering correctly with the 8 character Blackberry ID (which I assume it wouldn't do without the config file). What we need help with is how to troubleshoot the incoming notification. As I've stated, we appear to be sending the notification correctly but nothing comes in on the device.
Can someone on the Blackberry side see more than just the "1001\" desc=\"The request has been accepted for processing.\" message? Is there any more information about what I can expect to see while debugging the code on the device side? Does the incoming notification work similar to the registration in that the runtime looks for certain Android code and then intercepts it and replaces it with Blackberry functionality? If so, which code?