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
Highlighted
New Contributor
Posts: 4
Registered: ‎09-30-2013
My Device: developer
My Carrier: developer

socket.acceptAndOpen(); blackberry push app freeezes

i want enable push notification in my push port is  34059 .but sample app freezes at   Object o = socket.acceptAndOpen();
                    conn = (HttpServerConnection) o;


i using os<7  please reply

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

Re: socket.acceptAndOpen(); blackberry push app freeezes

That call is blocking and should be done on a separate thread:

http://www.blackberry.com/developers/docs/7.0.0api/javax/microedition/io/StreamConnectionNotifier.ht...

Garett
@garettBeuk
--
Goodbye everybody!