Shake the phone to send sms

I tried to send the SMS by just shaking our mobile phones.
But I can’t achieve this in android, bcoz Cordova shake plugin won’t support android. Are there any solutions for this to be achieved in android? Else any different solutions on the same pattern of sending SMS without opening the app…!
Please do help.
Thank you in advance,