How to add a particular sound for a button click in mobile app 
Question

In the mobile app, can we add a sound to a button? 

mvp_badge
MVP
Solution

Hi Aswin,


First you need to have the sound on Resources with Deploy to Target Directory to True:



Then you can play the sound using the Javascript below using the path of the resource:



Hope it helps.


Cheers,

João

Thanks! its working 

UserImage.jpg
Charles Greenlaw

How do I get it to stop playing because I inserted a song

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.