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

Java Development

Reply
Developer
Posts: 111
Registered: ‎10-01-2009
My Device: Not Specified

Re: battery usage / background threads

This may be a dumb question ... but isnt free push over BIS limited to like 8k?

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: battery usage / background threads

you can push a "get data here" message and your application can download all the kilobytes you need from there.

push and pull are not exclusive.

----------------------------------------------------------
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
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: battery usage / background threads

[ Edited ]

Yep, but this is not a problem.  Just send a message with a 'wakeup, there is data for you" content and then you can connect and pick up as much as you like!

 

Edit: SNAP!  I see Simon is a touch faster on his trigger!

Developer
Posts: 111
Registered: ‎10-01-2009
My Device: Not Specified

Re: battery usage / background threads

oh you two are smart Smiley Happy  

im in the weird position of working on an internal app for techs but w/o having access to the BES server we use. so im not sure i can push through there. yet all our data is internal so the communication is all through the bes, connecting to internal site, etc.

The idea would be to automatically update the techs with the new data on the server when it gets there by pushing, instead of having them poll for changes every x min/hours.  Then there is the idea of trying to sync 2 dozen local sqlites w/a server, but thats a whole different thing.

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: battery usage / background threads

you can use bis-push, but there are also other options, like an email listener.

we use email signaling in many apps (mainly developed prior to bis push, but also much easier)

----------------------------------------------------------
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
Developer
Posts: 111
Registered: ‎10-01-2009
My Device: Not Specified

Re: battery usage / background threads

since most of the communication is through XML, i created an alternate communication system that sends/receives the requests/responses through email if they cant use the BES (apparently our organization has a strange problem that RIM cant figure out re: intranet access [403: forbidden]).  its just really slow and limits how much data i can send back to the device.

Developer
Posts: 51
Registered: ‎07-15-2008
My Device: Not Specified

Re: battery usage / background threads

hi guys,

 

I have just opened socket connection  and its input stream to listen for data(confused push or pull ???)

 

Does this main reason to drain battery or i have to implement socket other way round to listen to incoming messages???

 

waiting.....

 

 

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: battery usage / background threads

Search for documentation on BIS or BES Push - that will tellyou what you need to do.  In fact for BIS Push, there is even some sample code supplied I believe. 

Developer
Posts: 51
Registered: ‎07-15-2008
My Device: Not Specified

Re: battery usage / background threads

[ Edited ]

hi peter

 

thnks for response...

 

can you please any example or link to push example coz i was not able to find anything..

 

does this push is anyways related to Blackberry PUSh APIs (might be dumb que)

 

 

Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: battery usage / background threads

Here?

 

http://na.blackberry.com/eng/developers/javaappdev/pushapi.jsp

 

There is a BES push sample included with the Development Environment.