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
Posts: 13
Registered: ‎06-17-2012
My Device: BlackBerry 10 Alpha
My Carrier: 3UK

NotificationDialog with custom sound

Hey there!

 

Having just taken part in the super-hectic and brilliant all aboard portathon, i've run into what looks like a bug, but i would like some feedback on it before reporting it "properly".

 

According to the documentation, the following code should yield a notification dialog (which it does) with a custom sound set (which it doesn't). The file does exist and the device is able to play it (as confirmed using the MediaPlayer API):

 

d->notification = new bb::platform::NotificationDialog(this);
d->yesButton = new bb::system::SystemUiButton("Yes");
d->noButton = new bb::system::SystemUiButton("No");
d->notification->appendButton(d->yesButton);
d->notification->appendButton(d->noButton);
d->notification->setSoundUrl("asset:///sounds/boing.wav");
d->notification->show();

Thanks in advance for any help or ideas that might crop up, as of course i would like to be able to port my app properly, using the traditional tea-is-ready sound as found elsewhere, which those using the app are used to meaning "Tea", as opposed to just a generic notification sound which i am currently having to use instead :smileywink:

..Dan // Leinir..
http://leinir.dk/

Co-
existence
or no
existence

- Piet Hein
New Developer
Posts: 13
Registered: ‎06-17-2012
My Device: BlackBerry 10 Alpha
My Carrier: 3UK

Re: NotificationDialog with custom sound

On suggestion from code1 on irc (who has run into the same exact issue), i have created an entry on Jira for this. https://www.blackberry.com/jira/browse/BBTEN-560
..Dan // Leinir..
http://leinir.dk/

Co-
existence
or no
existence

- Piet Hein