BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-27-2010, 11:52 PM   #1
alfer
New Member
 
Join Date: Apr 2010
Model: 8100
PIN: N/A
Carrier: AT&T
Posts: 3
Default Network Transport Methods

Please Login to Remove!

Hi All - New to the forum and blackberry development. I'm writing an app for the BB that I am targeting towards enterprise and consumer users (with and without a BES server). I want my app to connect to a server and wait up to 10 minutes for the server to issue an event. I need the app to recognize the event in real time and then display another screen to the user. I would like to use SOAP/web services, but that would be a simple one time request/response. I suppose I could poll my server every 2 or 3 seconds but that will generate a lot of unnecessary traffic. Also there is no way to have the BB listen for an incoming connection from the server AFAIK.

So, does anyone have a suggestion on how I can architect this?
Offline  
Old 04-28-2010, 08:17 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

I would investigate using the BlackBerry push service - see the Push SDK on the developer site.
Offline  
Old 04-28-2010, 05:21 PM   #3
alfer
New Member
 
Join Date: Apr 2010
Model: 8100
PIN: N/A
Carrier: AT&T
Posts: 3
Default

Thanks for the suggestion Doug, I would love to use BIS-B and Push, but unfortunately Im just starting out and there is no way I can justify the $2000 expense to become an "alliance" member with access to those features. Instead I will need to use Direct TCP and hope that the users have their APN settings configured correctly, or find out what carrier they are on and specify them in the code.

Can anyone tell me how long an httpsconnection can stay open? I was thinking of maybe submitting my SOAP request to the server, then let it sleep for 30 or 60 seconds before returning the response. Is there a limit to how long the BB will wait for a SOAP response?
Offline  
Old 04-28-2010, 05:30 PM   #4
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Keeping the TCP connection open is going to be a real battery-sucker. I would advise against it.

What is the nature of the data? Can you simply poll the host periodically (every few minutes?)

Another option might be to create your own push using an SMS or EMail message to trigger your HTTP request.
Offline  
Old 04-28-2010, 05:37 PM   #5
alfer
New Member
 
Join Date: Apr 2010
Model: 8100
PIN: N/A
Carrier: AT&T
Posts: 3
Default

It really is just a confirmation from the server once processing has been completed. But due to the nature of the app, it needs to be displayed to the user on the screen in real-time. I could see polling at most every 10 seconds which would probably use even more data and kill the battery quicker than keeping the connection open.
Offline  
Old 04-28-2010, 10:06 PM   #6
TeleBEEM
New Member
 
Join Date: Jan 2010
Model: 9630
PIN: N/A
Carrier: Verizon
Posts: 14
Default

You may try finding an outside developer who is an alliance member who could code this portion for you. It would be a lot less than the $2,000 to enroll in the program, and you could have them focus on just what you need, allowing you to keep most of your code private.
__________________
TeleBEEM - Apps For Your Mobile Life - http://www.telebeem.com
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Suprema BioLite N2 IP Fingerprint Access Control Time Attendance Reader BLN2-OAB picture

Suprema BioLite N2 IP Fingerprint Access Control Time Attendance Reader BLN2-OAB

$355.50



LP Weather Logic Seam And Flashing Tape (boxes) picture

LP Weather Logic Seam And Flashing Tape (boxes)

$200.00



(5) RS232 SP3232 TTL to RS232 Module RS232 to TTL Flash Cable Serial Port Module picture

(5) RS232 SP3232 TTL to RS232 Module RS232 to TTL Flash Cable Serial Port Module

$29.99



Avnet UltraZed-EG AES-ZU3EG-1-SOM-I-G Zynq UltraScale+ MPSoC System-on-Module picture

Avnet UltraZed-EG AES-ZU3EG-1-SOM-I-G Zynq UltraScale+ MPSoC System-on-Module

$129.99



PSE AMBER L9200ASH FIRE FLASH II NEW picture

PSE AMBER L9200ASH FIRE FLASH II NEW

$79.99



AVNET ULTRAZED SOM ZYNQ ULTRASCALE+ XCZU3EG SYSTEM ON MODULE -  picture

AVNET ULTRAZED SOM ZYNQ ULTRASCALE+ XCZU3EG SYSTEM ON MODULE -

$76.80







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.