ping plugin for cordova