cordova-plugin-simple-notification

Cordova Simple Notification Plugin

Usage no npm install needed!

<script type="module">
  import cordovaPluginSimpleNotification from 'https://cdn.skypack.dev/cordova-plugin-simple-notification';
</script>

README

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');