Skip to main content

Device Feedback

Plugin that lets you provide haptic or acoustic feedback on Android devices.

https://github.com/VVelda/device-feedback

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation#

$ npm install cordova-plugin-velda-devicefeedback
$ npm install @ionic-native/device-feedback
$ ionic cap sync

Supported Platforms#

  • Android

Usage#

React#

Learn more about using Ionic Native components in React

Angular#

import { DeviceFeedback } from '@ionic-native/device-feedback/ngx';
constructor(private deviceFeedback: DeviceFeedback) { }
...
this.deviceFeedback.acoustic();
this.deviceFeedback.haptic(0);
this.deviceFeedback.isFeedbackEnabled().then(feedback => {
console.log(feedback);
// {
// acoustic: true,
// haptic: true
// }
});