02-16-2013 03:40 PM
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).
03-21-2013 11:49 AM
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/notificati
ons/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?
03-21-2013 12:00 PM
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.
07-10-2013 08:39 AM
07-10-2013 10:05 AM