1.0.2 • Published 8 years ago

cordova-plugin-simple-notification v1.0.2

Weekly downloads
8
License
Apache 2.0
Repository
github
Last release
8 years ago

cordova-plugin-simple-notification

This plugin shows notifications on the status bar of android devices

Installation

this plugin requires cordova-plugin-android-support-v4 so first you must add that :

// required for cordova-plugin-simple-notification
cordova plugin add cordova-plugin-android-support-v4
  • if you use crosswalk seems adding cordova-plugin-android-support-v4 is not required

and this plugin :

// npm hosted id
cordova plugin add cordova-plugin-simple-notification

Supported Platforms

  • Android

Methods

  • notification.show

notification.show

Displays the notification

var unique_id_of_this_notification = 12;
notification.show(unique_id_of_this_notification, 'my title', 'my message');