Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.16 KB

File metadata and controls

41 lines (27 loc) · 1.16 KB

cordova-plugin-progress-notification

Progress Notification for Android Cordova Plugin

What is this?

A Cordova plugin which can be used to display progressive notification in android. like notification of file downloading or uploading.

Installation

cordova plugin add https://github.com/bhavincb/cordova-plugin-progress-notification

Or

npm install cordova-plugin-progress-notification
cordova plugin add node_modules\cordova-plugin-progress-notification

or for Ionic

npm install cordova-plugin-progress-notification
cordova plugin add cordova-plugin-progress-notification --save --no-registry

How can I use?

It's very simple, there are 4 self-explanatory methods:

all this methods can be used on global variable "progressNotification" which will be available after cordova device ready event is fired.

progressNotification.show(id, tittle, message, indeterminate); // indeterminate is optional

progressNotification.update(id, value); // value can be 0-100

progressNotification.finish(id, message, value); // Default parameter value for this method is 100

progressNotification.dismiss(id); // Close notification