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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

New Contributor
Posts: 7
Registered: ‎10-03-2012
My Device: 9810
My Carrier: Bell

Sound when Push Notification Happens

I curently have a WebWorks Application that receives push notifications. I'd like for the application to alert the user with a sound as well. I know that there were some implementations on how to do this using HTML5 audio, such as:


var audio = document.createElement('audio');
audio.controls = false;


But I want the user to be able to control the sound as well; meaning that if he has "All Alerts Off" selected in the Sounds option, the audio won't play when they receive a push notification. Is this possible to do?

Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: Sound when Push Notification Happens



there is a even better way. Why not integrate the application in the normal Blackberry notification? Then every user can change the notification as every otehr application. You can find the extension on github:





find my widgets -> http://blackberry.itbert.de
New Contributor
Posts: 7
Registered: ‎10-03-2012
My Device: 9810
My Carrier: Bell

Re: Sound when Push Notification Happens


Thanks for your suggestion. I don't exactly understand this API though. What does each of these functions do?

webworks.notification.register ( [String:App Guid Name] , [String:App Name] )

webworks.notification.fire ( [String:App Guid Name] )

webworks.notification.cancel ( [String:App Guid Name] )

webworks.notification.unregister ( [String:App Guid Name] )

New Contributor
Posts: 5
Registered: ‎09-14-2013
My Device: SQN100-1
My Carrier: Rogers

Re: Sound when Push Notification Happens

Did anyone ever happen to get anywhere with creating multiple notification profiles so that users can configure different notification settings for different events in your app?


The sample API that was linked to is for the Smartphone SDK, I'm looking for a way to do this using the WebWorks Blackberry 10 SDK.


Any help?