Implementing shake or volume functionality


#1

I’ve tried with a couple different cordova and phone gap plugins to add either shake or volume control functionality within Ionic… to no avail. Has anyone tried this or is perhaps willing to set up a plunkr for me?


#2

Which plugins have you installed?

http://plugins.cordova.io/#/package/org.apache.cordova.vibration
http://plugins.cordova.io/#/package/org.apache.cordova.media


#3

So far I’ve tried these three. I’m assuming I’m just implementing something incorrectly.

https://gist.github.com/ucavus/5418463
https://github.com/leecrossley/cordova-plugin-shake-detection
http://cordova.apache.org/docs/en/2.5.0/cordova_accelerometer_accelerometer.md.html


#4

Ah, when you said, I thought you meant the vibration :smile:

Yeah, I’ve never even seen this plugin before. May be best bet to try to adapt this plugin to an angular directive


#5

I’m seeking volume plugin and I found this, I will probably try it in next few days https://github.com/devgeeks/VolumeSlider