Search docs/

Device Feedback

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

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

Premier Version Available

Featuring regular release cycles, security and bug fixes, and guaranteed SLAs.

Available here

Installation

ionic cordova plugin add cordova-plugin-velda-devicefeedbacknpm install @ionic-native/device-feedback
Ionic Native Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android

Usage

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
    // }
  });