Device Feedback

Contents

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

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

Stuck on a Cordova issue?

Installation

Community Enterprise
ionic cordova plugin add cordova-plugin-velda-devicefeedback npm install @ionic-native/device-feedback
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More   or   Contact Us
ionic activate-native-ee --key=YOURPRODUCTKEY ionic integrations add @ionic-native/device-feedback

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