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
Posts: 3
Registered: ‎04-18-2013
My Device: Blackberry 9360
My Carrier: AT&T

Browser-channel push - Unable to push file of more than 1MB

I am doing a browser-channel push with content of HTML included. The HTML contains data in the form of JSON. If the file size is more than 1MB, the push fails. How can I push file of size more than 1MB?
Developer
Posts: 270
Registered: ‎12-13-2010
My Device: PlayBook 16GB, BB10 Dev Alpha
My Carrier: o2 (de)

Re: Browser-channel push - Unable to push file of more than 1MB

Simply don't do it that way.

Instead let your app fetch the data once your app got the push invocation...

- - -
My approved apps @ App World
Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Browser-channel push - Unable to push file of more than 1MB

Hi,

 

I should mention that browser channel push is a very specific type of push that is only supported by BES (not BIS).

And, it does not involve sending HTML content but rather a content URL.

Are you in fact attempting to push using BES (an enterprise server)?

 

If you're using BIS (you registered for an eval account and you are pushing to the general public), there is an 8 KB push limit.  You would want to use a poke-and-pull strategy.

You poke the app using your push and pass it the URL it should then go and download content from.

 

Thanks,

 

Matt

 

 

New Contributor
Posts: 3
Registered: ‎04-18-2013
My Device: Blackberry 9360
My Carrier: AT&T

Re: Browser-channel push - Unable to push file of more than 1MB

Thanks. Yes, push is through the BES server. HTML is sent as part of the push so that the content is cached on the device and it loads faster in the browser; also available if there is no network.

 

It works fine as long as HTML file size is less than 1MB. I am using HttpWbRequest setting all headers and file content using StreamWriter.

 

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

Re: Browser-channel push - Unable to push file of more than 1MB

You might be able to increase this limit as suggested here in your BES:

http://supportforums.blackberry.com/t5/BlackBerry-Enterprise-Server/Push-Content-Limit/td-p/235987

 

But, as mentioned, push is not meant to push large amounts of data.

 

That's what the poke-and-pull pattern is generally for.

New Contributor
Posts: 3
Registered: ‎04-18-2013
My Device: Blackberry 9360
My Carrier: AT&T

Re: Browser-channel push - Unable to push file of more than 1MB

Thank you. Can you please provide some link about how poke-and-pull works? Also, what device model/OS it is supported on?

 

Thanks for your help!

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

Re: Browser-channel push - Unable to push file of more than 1MB

I can't seem to locate a good reference for you about how poke-and-pull works but think of it in these steps:

1. You send a push to your application running on your device with a URL to your externally accessible server that contains data that you're going to want to pull down (e.g. from a RESTful Web Service you wrote)

2. In your push handling code, you would extract this URL to your server and then start downloading the appropraite content from that URL.

 

It's not really constrained to a particular device or OS.  It's more a design pattern you can use.

 

Matt