12-18-2012 11:23 PM
hi everyone, i have some question about push on android runtime here, because i haven't find a full example for this, please help me, ![]()
---------
sorry because i asked too much, please help me.. Btw, a full example for client and server side will be a great help in case someone want to share.. thanks
Solved! Go to Solution.
12-21-2012 01:30 PM
Have you applied for Push Service access yet? This is specific to BlackBerry and in the form there is a place to enter your code signing email so you can receive the appropriate permissions:
https://developer.blackberry.com/develop/platform_
3. Send the token of the device (currently the PIN) which gets generated after registering to your server.
4. How are you Pushing Today? BlackBerry uses PAP XML HTTP Posts, but also works with Urban Airship.
12-22-2012 03:29 AM - edited 12-22-2012 03:57 AM
Thanks garett,
one question is still in doubt, please help me... ![]()
12-24-2012 09:57 AM
The BPS server registration should happen automatically, the registration I was referring to was to your server-side application.
From the server-side you will need to use the BlackBerry-specific Push implementation, using this method the device PIN is used to address the messages. So the easiest way for your server to know the address of the device would be for your app to send off a network message with the PIN to your server.
01-06-2013 11:02 PM
Hi, Garett ,
for the server side, i've implemented the old BPS Push server application which is working fine for Java application, but for BB10, it cannot work,
the BB10 device PIN was not registered, so i suspect the device is not registering it self to BPS Server via GCM or C2DM.
Do you or anyone have sample for the GCM implementation ? Thank you
01-07-2013 07:34 AM
GCM isn't supported today, only C2DM.
01-09-2013 09:59 AM
Just wanted to follow up on this as GCM is support.
In your andorid.cfg is the appId the registration ID that was given to you when you signed up fro the BlackBerry Push Service? You soould have recieved a Push service URL as well which would need to be in the android.cfg file.
Basicly ensure the parts in Red below are populated with the correct information from the Push service registration.
01-09-2013 10:09 AM
mwhiteman wrote:
Just wanted to follow up on this as GCM is support.
Yep, that was my bad, I didn't realize support was added in the recent Beta drop.
If you are using the Push Service SDK server-side then you would also need to implement logic to send the PIN to the server to register your device, this won't happen automatically.
01-11-2013 03:30 AM
Hi matt,
I've unzipped the signed .bar file, and yes, it do have the android.cfg file just like your example, like this :
<?xml version="1.0" encoding="utf-8"?>
<android>
<push>
<appid>xxxx-adasdasxcasfaefasdasdefwef</appid>
<ppgurl>https://cpxxxx.pushapi.eval.blackberry.com</ppgurl>
<tokenprefix>bb-</tokenprefix>
</push>
</android>
but is still generate error : "handleRegistration: registrationId = null, error = SERVICE_NOT_AVAILABLE, unregistered = null"
am I still missing something here?
01-11-2013 05:48 AM
Hi garett, we have already created module for the purpose to keep the reference of push subscriber, but it runs after the registration to BPS server is success.