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

Web and WebWorks Development

Reply
Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800
Accepted Solution

HTML 5 Webworks Notifications

I was wondering how or rather if it would be possible to show a notification icon on the homescreen of the blackberry given that you are working in HTML 5. I know this can be done in the java environment but I'm not sure for HTML 5. If anyone has any information on whether this can be achieved any information would be useful. Thanks in advance.

Developer
shnuffy
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: HTML 5 Webworks Notifications

Indeed. You can use the community-sourced API: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/notification for full custom notifications and the native showBannerIndicator to show a little icon with a number in the ribbon : https://bdsc.webapps.blackberry.com/html5/apis/blackberry.app.html#.showBannerIndicator

 

To make that clickable in the message list, use the community-sourced API: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/MessageList

 

 

Trusted Contributor
WorkHorse
Posts: 100
Registered: ‎01-13-2012
My Device: Simulator - 9800

Re: HTML 5 Webworks Notifications

Many thanks, your answer helped a lot!

Contributor
dalv
Posts: 21
Registered: ‎02-13-2011
My Device: Tablet OS

Re: HTML 5 Webworks Notifications

Any idea if there's support for PlayBook?

Developer
shnuffy
Posts: 268
Registered: ‎08-19-2009
My Device: Bold 9700

Re: HTML 5 Webworks Notifications

setHomeScreenIcon() and showBannerIndicator() are not available on the Playbook.

 

See: https://bdsc.webapps.blackberry.com/html5/apis/blackberry.app.html#.setHomeScreenIcon

New Developer
sakalepavan
Posts: 32
Registered: ‎05-05-2014
My Device: 9780

Re: HTML 5 Webworks Notifications

i am using extension of messagelist from webwotks api which is webworks.messagelist the problem is that i am able to show message on message box but not able to show it on homescreen list any idea i am testing it on blackberry torch 9800 and one thing this code works on blackberry simulator.....