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

Native Development

Reply
New Developer
MarkS3
Posts: 8
Registered: ‎01-22-2013
My Device: Playbook
My Carrier: Rogers

App Notification Sound override with "soundUrl" not working

I just couldn't figure out why my app notification sounds did not work, and found that the same problem exists with the "Notifications" sample app.

 

The soundUrl override for Notification and NotificationDialog don't work and it always plays the default "Essential" sound on a Z10 device even if the default sound is changed under  settings (Notification -> Other Applications -> notifications).

 

Regards,

Mark

Please use plain text.
New Contributor
tsbb
Posts: 4
Registered: ‎03-15-2013
My Device: Developer account

Re: App Notification Sound override with "soundUrl" not working

I am currently facing the same problem. Where you able to figure it out by now, or is it actually an error in the system?

 

This is my current code:

 

...
Notification n;
n.setTitle(alert);
n.setSoundUrl("app/native/assets/sounds/notifications/abc.wav");
NotificationError::Type error = n.notify();
...

 I made sure that the file exists and I also tried a soundUrl starting with "asset:///sounds/...". It does not seem to work and looks to me like it's BB10s fault. Can someone verify this?

Please use plain text.
New Developer
MarkS3
Posts: 8
Registered: ‎01-22-2013
My Device: Playbook
My Carrier: Rogers

Re: App Notification Sound override with "soundUrl" not working

It appears to be a BB10 Cascades bug.  I gave up with the notification sound, and just added a MediaPlayer and used it to play the sound instead.

 

 

Please use plain text.
Developer
thubalek
Posts: 318
Registered: ‎10-01-2012
My Device: Dev Alpha C, Playbook 32 GB
My Carrier: BleskMobil

Re: App Notification Sound override with "soundUrl" not working

I'm facing the same issue in SDK 10.1 Gold.

 

Is it really bug or we both missed something?

--------------------------------------------------------------------------------------------
-- My Blackberry 10 app at http://blackberry.hubalek.net
-- My Android apps at http://android.hubalek.net
Please use plain text.
Retired
PBernhardt
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: App Notification Sound override with "soundUrl" not working

Please log a bug on the Developer Issue Tracker: DIT

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.