A beep sound can be used to notify a user about a incoming chat message while the user is chatting with someone else. It can be used for many other cases but its always related to notifying a user while user is using the app on foreground.
With just one line of code we can play a beep sound
//this function must be called inside a event handler. It takes number of beep sounds to play as parameter.
intel.xdk.notification.beep(2);
},false);
Make sure you have included Intel XDK Notification plugin in your app.