Languages

Menu
Sites
Language
How to post notification with default sound?

When posting a notification using tizen.notification.post(), I would like to play the default notification sound. 

var notificationDict = {
                  content : "This is a simple notification.",
                  //soundPath : ? //what is the path for default sound?
                  vibration : true, 
                  appControl : appControl};
       
      var notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);

If I don't set the soundPath field in the dictionary object, no sound is played. Does anyone know what path I can use to get the default notification sound to play?

 

Responses

2 Replies
Raghavendra Reddy Shiva

From the Device API reference documentaion, seems like there is no support to use the defalut sound and need to define the sound property, if sound is needed oto play on notification post.Even i strongly believe there should be some way to use th defalut sounds. Will post back, if i could find more information on this.

Michael Diener

I'm looking for the very same. For me the reason is to create a notification that behaves the same way a push notification does. This is useful in the case the app is running in the background and thus the system does not create a notification but calls a listener in the app.