Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Native tick sound on button clicks with PhoneGap

I'm handling the touchstart and touchend events to determine when an element is clicked. It works very well and is responsive, but I'm missing the default click sound that happens in native apps when you press a button.

Is there a way to trigger this sound with PhoneGap rather then using html5 audio?

like image 898
Hzyf Avatar asked Jan 12 '23 21:01

Hzyf


1 Answers

Well, I have developed new Cordova plugin a few days ago which provide that you need.

Take look at https://github.com/VVelda/device-feedback

You can then call native sound response on button click. No any audio media, or any other workaround. I hope it will help you, altough you already set the answer that help you. :-)

like image 152
Velda Avatar answered Jan 16 '23 02:01

Velda