Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 438 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 438 Bytes

This package provides feedback (vibrate, sound) to both Cordova and Browser.

Profile Setup

Feedback.profiles = {
  "somethingHappened": {
    sound: "/sounds/playSomething.mp3",
    vibrate: [500,50,500,50,100] 
  }
}

and to trigger it

Feedback.provide("somethingHappened");

Cordova

The package handles importing the necessary plugins from cordova and abstracting any differences in calling methods.