
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
cordova-plugin-shake
Advanced tools
Cordova Plugin to detect when a physical device performs a shake gesture.
Apache Cordova / PhoneGap Plugin to detect when a physical device performs a shake gesture.
For iOS, the plugin uses the native shake detection. Fo all other platforms, it is based on a standalone JavaScript implementation I wrote last year (gist).
Requires Cordova v5.0.0 or above.
cordova plugin add cordova-plugin-shake
cordova plugin add https://github.com/leecrossley/cordova-plugin-shake.git
You do not need to reference any JavaScript, the Cordova plugin architecture will add a shake object to your root automatically when you build.
NB: For non-iOS platforms, there is no native component to this plugin but it depends on the device motion plugin (added when this plugin is added).
var onShake = function () {
// Fired when a shake is detected
};
var onError = function () {
// Fired when there is an accelerometer error (optional)
};
// Start watching for shake gestures and call "onShake"
// with a shake sensitivity of 40 (optional, default 30)
shake.startWatch(onShake, 40 /*, onError */);
// Stop watching for shake gestures
shake.stopWatch();
FAQs
Cordova Plugin to detect when a physical device performs a shake gesture.
The npm package cordova-plugin-shake receives a total of 394 weekly downloads. As such, cordova-plugin-shake popularity was classified as not popular.
We found that cordova-plugin-shake demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.