
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
cordova-plugin-taptic-engine
Advanced tools
Use Apple's Taptic Engine to vibrate your iPhone 6s (or up) in a variety of ways.
The awesome Untappd app has a bunch of haptic feedback, powered by this plugin! 🍻
Latest stable version from npm:
$ cordova plugin add cordova-plugin-taptic-engine
Bleeding edge version from Github:
$ cordova plugin add https://github.com/EddyVerbruggen/cordova-plugin-taptic-engine
TapticEngine.js is brought in automatically.
It adds a global TapticEngine object which you can use to interact with the plugin.
Check the demo code for all the tricks in the book, or read on for some copy-pasteable samples.
Make sure to wait for deviceready before using any of these functions.
It's recommended to use this API, but you're limited to iPhone 7 and higher. As per Apples guidelines there's no runtime way to determine if the device is capable of providing haptic feedback, so the success callback will always be invoked. The only check I've added is for running iOS < 10 or on the Simulator which both simply will never work, so those invoke the error callback.
Bottom line: just use these awesome features and ignore the callbacks.
The API names are modeled after what Apple has called them:
selectionUse selection feedback generators to indicate a change in selection.
TapticEngine.selection();
notificationUse notification feedback generators to indicate successes, failures, and warnings.
TapticEngine.notification({
type: "error" // success | warning | error
});
impactUse impact feedback generators to indicate that an impact has occurred. For example, you might trigger impact feedback when a user interface object collides with something or snaps into place.
TapticEngine.impact({
style: "heavy" // light | medium | heavy | rigid (iOS 13+) | soft (iOS 13+)
});
gestureSelection[start | changed | end]The functions above are great for one-time events, not so much for gestures. Say for instance you want to tie this plugin to a range slider, then you can 'start' the selection first, invoke 'changed' upon changes in the range (there may be many during one gesture), then 'end' when the slider changes are done.
Tell the taptic engine that a gesture for a selection change is starting.
TapticEngine.gestureSelectionStart();
Tell the taptic engine that a selection changed during a gesture.
TapticEngine.gestureSelectionChanged();
Tell the taptic engine we are done with a gesture. This needs to be called lest resources are not properly recycled.
TapticEngine.gestureSelectionEnd();
BEWARE This uses an undocumented feature which may get your app rejected when reviewed by Apple. People have used this approach without problems though.
weakBoomThis triggers the same effect as the 'Peek' in 'Peek & Pop', a very brief vibration.
TapticEngine.unofficial.weakBoom(
function() {
// note that unsupported iOS devices like the simulator also end up here, at the moment
console.log("Boomed weakly, if available.");
}, function () {
console.log("You're running on Android. Meh.");
}
);
strongBoomThis triggers the 'Pop' effect of 'Peek & Pop', which is a bit more profound than the 'Peek' effect.
Codewise this is exactly the same as weakBoom, except for the function name of course.
burstThis triggers the 'Nope' effect you get when fi. force touching a home icon which doesn't have any action. It's a short burst of 3-ish 'weak booms'.
Codewise this is exactly the same as weakBoom and strongBoom, except for the function name of course.
gestureSelection* methods. See the doc above why those matter!TapticEngine.unofficial.*. Requires Xcode 8 to build.FAQs
Use Apple's Taptic Engine to vibrate your iPhone 6s (or up) in a variety of ways.
The npm package cordova-plugin-taptic-engine receives a total of 332 weekly downloads. As such, cordova-plugin-taptic-engine popularity was classified as not popular.
We found that cordova-plugin-taptic-engine 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.