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 Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Browser Channel Push

We've created a server side applications that pushes an icon for a specific URL to the device using BlackBerry browser channel push.

In the first step everything works fine. The read and unread icon is pushed to the device. Also launching the URL works fine.

We now noticed that the icon on the device disappears once the device is rebooted (remove battery). When the device restarts only the "default" browser channel icon appears. After a while it looks like the icon is reloaded from the backend and is then displayed again on the device.

We now have the problem that in some case the original icon is not available in the backend system anylonger. In this case the icon is gone on the device and only the default icon is displayed.

Is there a way to tell the device to just keep the icon until a new icon is pushed or the icon is removed ?

We do not understand why the icon is reloaded after reboot.

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,690
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Browser Channel Push

The icon should remain.  Does this happen every time the device is reset?  What BlackBerry Smartphone model and BlackBerry device software version are you testing on?  You can find this under Options, About on the BlackBerry Smartphone.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Re: Browser Channel Push

Yes the icons disappear/change after each reset ad are then reload (if still available).

We have tested with 8310, 8800, 8520 and 9700 with device OS 4.2 to 5.0. We discovered different behavior depending on the device and the OS.

8800 with OS 4.2: Icons change to default icon after restart and are not reloaded

9700 with OS 5.0: Icons change to  default icon after restart and are reloaded

8520 with OS 4.6: Icons disappear and are only reloaded when choosing the browser channel from the browser bookmarks.

 

 

Please use plain text.
New Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Re: Browser Channel Push

Here is part of the JAVA code we use

 

URL pushURL = new URL("http", MDSAddress, Integer.parseInt(MDSPort), "/push?DESTINATION=" + sDeviceId + "&PORT=" + devicePort + "&REQUESTURI=/");
HttpURLConnection conn = (HttpURLConnection) pushURL.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("X-RIM-Push-Title", sTitle);
conn.setRequestProperty("X-RIM-Push-Type", sPushType);
conn.setRequestProperty("X-RIM-Push-Channel-ID", "C-" + sDocID);
conn.setRequestProperty("Content-Location", contentUrl);
conn.setRequestProperty("X-RIM-Push-Read-Icon-URL", sIconUrlRead);
conn.setRequestProperty("X-RIM-Push-UnRead-Icon-URL", sIconUrlUnRead);
conn.setRequestProperty("Content-Type", "text/html");

conn.setRequestProperty("Authorization", userNamePasswordBase64(username, password));
conn.setAllowUserInteraction(false);
conn.setDoInput(true);
conn.setDoOutput(true);

 

We are on BES 4.1.7 MR1.

Do you have any idea why the icon is always reloaded and how we can avoid reloading it ?

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,690
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Browser Channel Push

I haven't been able to reproduce this.  Does it only occur when the image at the URL used in the push is no longer available?  Are you able to reproduce this on demand?  If so, what actions are you taking after the push has been delivered (wait X minutes, open the channel X times, etc...).?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Re: Browser Channel Push

We can reproduce this.

1. We push an icon (read/unread) for a specific URL

2. The icon is shown on the device. Everything looks ok so far.

3. We turn off the radio of the device

4. Pull the battery

5. Restart the device (with radio off)

6. The icon on the device is either removed or replaced with the default icon

 

This can always be reproduced in our environment.

When turning on the radio on the device the icon is reloaded from the source (if still available).

 

 

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,690
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Browser Channel Push

I still wasn't able to reproduce this.  Is the actual page that was pushed available on your web server using the URL that was pushed?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Re: Browser Channel Push

We only want to push an icon to the Blackberry. The icon then refers to a web page. We do not push any browser content. And yes, the web page is available.

We've implemented the icon push within a Lotus Notes application. The application pushes out an icon with an URL that is opened when clicking on the icon.

 

Is it possible that you send me your sample code so we can compare it with our implementation ?

Can the behavior be a problem with the MDS service of BES 4.1.7 ?

 

Do you have a public icon push available where we can push an icon to our devices for testing ?

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,690
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Browser Channel Push

A Java browser channel push example is included with the BlackBerry JDE and BlackBerry Java SDK.  Once installed, you can find the sample in the InstallDir\samples\com\rim\samples\server\browserpushdemo directory.

 

You can download these tools from here:  http://na.blackberry.com/eng/developers/javaappdev/devtools.jsp

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
kwichman
Posts: 11
Registered: ‎12-30-2009
My Device: Storm 2

Re: Browser Channel Push

Our code looks ok.

Can this be an issue with MDS from BES 4.1.7 ? With which version did you perform the tests ?

We are not quite sure but we think we never noticed the same issue with disappearing browser channel icons with earlier BES versions.

Do you have any idea what could be the problem ?

Please use plain text.