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

BlackBerry Push Development

Reply
Contributor
Posts: 16
Registered: ‎09-17-2012
My Device: Blackberry Q10
My Carrier: Telus

http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

Hi, I've been trying to register my blackberry on the eval server to test push notifications and the URL does not work for me.

 

http://pushapi.eval.blackberry.com/mss/PD_subReg?serviceid=xxxx-xxxxxxxxxxx&osversion=6.0.0.666&mode...

 

The x's being my app ID of course.

 

I tried without the deviceside and ConnectionType parameters although it shouldn't change much because the URL isn't working anyway.

 

I have a data plan on my blackberry and BIS is enabled. Also, should the URL work when I'm trying to access it from my PC?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

Hi,

 

The URL should only work from the smartphone.

 

Are you using the sample application included with the Push SDK? This should how to use the proper transport so that you can successfully register; based on the URL you provided you are not using the proper transport.

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 84
Registered: ‎12-02-2009
My Device: Not Specified

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

Why Url does not include edevice info, such as device id? how blackbery push server know which device do registration?

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

The URL was not created as expected, normally it should include the PIN as well.
Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 84
Registered: ‎12-02-2009
My Device: Not Specified

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

Could you give detail url for registering the device on blackberry push server? parameter id pin=xxxxxx or deviceid= xxxxx?
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

This is all included in the sample I referenced above. If you have questions about the sample please let me know.
Garett
@garettBeuk
--
Goodbye everybody!
Contributor
Posts: 16
Registered: ‎09-17-2012
My Device: Blackberry Q10
My Carrier: Telus

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

I've tried using it, but I'm hoping I can go around it since it requires a sample initiator and I can only access it via our internal network and I'm pretty sure I've read that it has to be accessible externally. I'm not quite setup for that. Also, how do I get access to the sample push enabled app source code?

 

That being said it seems I only need the good url structure, but I don't know where to find it

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

The test app can be modified to not require your server to be external so long as  you know the target device PIN. The only thing the server is required for is:

1) Device subscription

2) Push notifications

 

Neither of these are required for push to function.

 

The full source code is included with the Push Service SDK:

<install_dir>\pushsdk-low-level\sample-push-enabled-app\sample-push-enabled-app-1.1.0.16-sources\pushdemo

Garett
@garettBeuk
--
Goodbye everybody!
Regular Contributor
Posts: 84
Registered: ‎12-02-2009
My Device: Not Specified

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

By, My understanding sample code include in push sdk installation folder.

Garett ,

I look sample, regster the device for push sever there two parts, ContentProviderProtocol.performCommand, and bpasProtocol.register, device infor is in register content provider part.
Regular Contributor
Posts: 84
Registered: ‎12-02-2009
My Device: Not Specified

Re: http://pushapi.eval.blackberry.com/mss/PD_subReg - connection timeout

What I am interesting is how Can I move register content provide part into register blackberyy push server part , in bpasProtocol.register(...