Cordova interface to sma