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

Specify read and unread icons during a channel push

by Retired ‎02-17-2010 01:49 PM - edited ‎02-18-2010 05:05 PM (4,002 Views)


This article applies to the following:

  • BlackBerry® wireless devices based on Java™
  • BlackBerry Mobile Data Service


Push the Portable Network Graphics (PNG) images to the browser’s cache using cache pushes. Then do a Channel Push, which would reference the Universal Resource Locator (URL) of the cached images.

Complete the following steps:

  1. Perform a cache push, to push the unread icon to the browser's local cache. Set the HTTP headers as follows, then write the contents of the PNG file. This is similar to writing the contents of a page for a channel push.
    • content-location: http://server/myUnreadIcon.png
    • content-type: image/png
    • etc.
  2. Do another cache push for the read icon.
    • content-location: http://server/myReadIcon.png
    • content-type: image/png
    • etc.
  3. Do a channel push, using the URLs for the unread and read icons, above:
    • content-location: http://server/myPage.html
    • content-type: text/html
    • x-rim-push-unread-icon-url: http://server/myUnreadIcon.png
    • x-rim-push-read-icon-url: http://server/myReadIcon.png
    • etc.

The browser pulls the PNG file from cache when the push gets to the device.

Users Online
Currently online: 29 members 6,069 guests
Please welcome our newest community members: