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

Adobe AIR Development

Posts: 25
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: Sofrware engineering
Accepted Solution

socket connection issue in standby state

My app need update security data in real time,so it should be able to run well even the PB switch to standby state.
The problem is that when PB changed to standby state and more than one hour later,my app can't send data request to the server by socket(at the beginning it workd well),even when the PB get actived again,the socket connection is also unuseful.
I have done some try as followed:
1,I have added the '<inactivePowerMode>throttled</inactivePowerMode>' into the blackberry-tablet.xml
2,I have add some event listiner in main class, but all of them can not be fired in any time.



3,I have set a timer to log some infomation into /shared folder.it worked well in standby state.


Thanks for any reply.

Posts: 116
Registered: ‎11-18-2010
My Device: BlackBerry PlayBook
My Carrier: null

Re: socket connection issue in standby state

[ Edited ]

I am a developer of the Instant Messenger which is connected to the gate via socket. What I can tell you for sure i that You need to use:
Than, use SocketMonitor in order to be sure that connection is available, some WiFi routers may shut down idle connection event when U don't want to! so U need to reconnect in such cases.
Please, feel free to ask for the more assistance.

Posts: 25
Registered: ‎03-13-2011
My Device: Playbook
My Carrier: Sofrware engineering

Re: socket connection issue in standby state

Hi,Cherny,thank you very much.

I will try it later and I'm pretty sure your reply is a good idea.

Thanks again.