Skip to content
🔄 Cordova plugin for showing a native spinner based on Paldom/SpinnerDialog
Branch: master
Clone or download
Pull request Compare This branch is 35 commits ahead, 8 commits behind ravi013:master.
greybax Merge pull request #9 from Silvochka/master
added badge staticticks for download per month for npm
Latest commit a4ac265 Oct 31, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Update SpinnerDialogProxy.js Jul 29, 2018
www Updated SpinnerDialog.js Sep 17, 2017


NPM version npm

Cordova plugin for showing a native spinner based on Paldom/SpinnerDialog

NPM Package: cordova-plugin-native-spinner

🔥 This Plugin is officially using in ionic-native 🔥


Android logo iOS logo Windows logo Windows logo
4.1+ ✔ 10+ ✔ Windows Phone 8.1+ ✔ 10+ ✔


Latest stable release:

  • PhoneGap - phonegap local plugin add cordova-plugin-spinner-dialog
  • Cordova - cordova plugin add cordova-plugin-spinner-dialog

Current state from git:

  • PhoneGap - phonegap local plugin add
  • Cordova - cordova plugin add
cordova plugin add cordova-plugin-native-spinner
cordova prepare

Includes PR's improvements from Paldom/SpinnerDialog:


  • SpinnerDialog.hide[title], [message], [cancelCallback])
  • title: Spinner title (Android only). Optional. (String)
  • message: Spinner message. Optional. (String)
  • cancelCallback: Callback to invoke when spinner cancel event fired (tap or Android hardware back button event). If set, spinner dialog will be fixed, you should explicitly call SpinnerDialog.hide. Due to legacy reasons you can provide boolean value (true/false) to set spinner not cancelable. Optional, defaults to false. (Function/Boolean)


  • wpStatusbar: Indicates whether to keep the status bar visible. (Windows 10 Mobile only). If set to true, only the spinner will be hidden, the status bar will remain visible if it was already visible. Optional, defaults to false. (Boolean)


// Show spinner dialog;

// Show spinner dialog with message
// Note: spinner dialog is cancelable by default, "message");

// Set spinner dialog fixed, null, true);

// Set spinner dialog fixed with callback
// Note: callback fires on tap events and Android hardware back button click event, null, function () {console.log("callback");});

// Show spinner dialog with title and message (Android only)"title", "message");

// Set spinner dialog fixed (cannot be canceled with screen touch or Android hardware button)"title", "message", true);

// Overlay opacity and text color options (IOS only),"Message",true, {overlayOpacity: 0.35,  textColorRed: 1, textColorGreen: 1, textColorBlue: 1}); 

// Change only overlay opacity (IOS only),"Message",true,{overlayOpacity:0.70});

// Change only text color (IOS only),"message",true, { textColorRed: 0.1, textColorGreen: 0.1, textColorBlue: 1});

// Hide spinner dialog


  • Cordova 5.0 or higher is required for Windows 10 support.
  • Windows 10 Mobile or Windows Phone 8.1 is required as desktop doesn't support StatusBar.


See "LICENSE". Based on with lots of awesome improvements! ⭐️ 🎉 🚀 ⭐️

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.