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
New Contributor
justx
Posts: 3
Registered: ‎02-21-2011
My Device: Bold 9000

Simplified BIS-Push client sample is not working

Hi There 

When I try to run Simplified BIS-Push client sample application which is provided by support of this forum is not working. I'm creating a sample application then i'm putting example files which is downloadable from this url is not working. It's throwing an exception that

 

[0.0] Starting to listen for push messages through 'http://:29325;deviceside=false;ConnectionType=seekrit [0.0] string'
[0.0] Failed to open port, caused by java.io.IOException: Invalid url parameter.

 

[0.0] Starting to listen for push messages through 'http://:29325;deviceside=false;ConnectionType=seekrit [0.0] string'[0.0] Failed to open port, caused by java.io.IOException: Invalid url parameter.

 

Where is the mistake ? 

Contributor
maza23
Posts: 12
Registered: ‎09-04-2012
My Device: 9700 bold

Re: Simplified BIS-Push client sample is not working

I have this same problem.. any solution?

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Simplified BIS-Push client sample is not working

"seekrit string" is not the real parameter, you have to replace it with the BIS parameter. You can get that from the normal sample or many other sources, but this forum disallows to post it (so i did not include it in the sample)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Contributor
herahadi
Posts: 27
Registered: ‎02-20-2013
My Device: 9900

Re: Simplified BIS-Push client sample is not working

hello simon,

 

i used your sample code and called it with bellow code

 

new pushAgent();

 

i placed above code on mainScreen, the complete code is like below

 

public final class MyScreen extends MainScreen
{
    public MyScreen()
    {        
        new PushAgent();
....

 but, when i start the app, its doing nothing. i received no error nor success message.

 

please help me... what should i do?

Retired
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10

Re: Simplified BIS-Push client sample is not working

Hi,

 

You might want to check out the sample and developer guide for building a push app using Java here:

https://developer.blackberry.com/devzone/develop/platform_services/push_apps.html

 

Thanks,

 

Matt

Contributor
herahadi
Posts: 27
Registered: ‎02-20-2013
My Device: 9900

Re: Simplified BIS-Push client sample is not working

@mdandrea thank you, i have already tried the sample on link you give, but its too complex for me. i think the sample from simmon is more simple