1) I am using Pushwoosh to send a notification to a user's mobile device. When the app is receiving the incoming notification, how can it trigger a local sound on the user's device to alert them to the incoming message. I want to be able to do this without the user having to explicitly load any sound file or anything other than just installing our app.
2) I want the above to happen whether my app is currently in focus or not.
3) Additionally, can I embed in my app our own sound, instead of using a native device sound?
Thank you!
-- Joel
Hi Joel.
If you don't want to mess with HTML elements, you can simply use javascript to play the sound:
var audio = new Audio('audio_file.mp3'); audio.play();
This uses the HTMLAudioElement interface, which plays audio the same way as the <audio> element.
In Outsystems, it should be something like this:
Cheers,
GM
Gonçalo Martins wrote:
Thank you! Looks like the javascript tip will work well for my needs. I appreciate the assistance.