cordova-plugin-themeablebrowser icon indicating copy to clipboard operation
cordova-plugin-themeablebrowser copied to clipboard

Show loading

Open keithmichelson opened this issue 8 years ago • 1 comments

Is there anyway to show any type of loading? Spinner, progress bar anything to give some visual clue?

The load listeners are working but no Idea what I can put in there.

addEventListener('loadstart', function(event) { //loading }).addEventListener('loadstop', function(event) { //stopped loading }

keithmichelson avatar Apr 04 '17 06:04 keithmichelson

install cordova plugin add cordova-plugin-dialogs

After that add below code:

.addEventListener('backPressed', function(e) {
          console.log(e);
        }).addEventListener('openweb', function(e) {
          $window.open(url, '_system');
          console.log(e);
        }).addEventListener(cordova.ThemeableBrowser.EVT_ERR, function(e) {
          console.log(e);
        }).addEventListener(cordova.ThemeableBrowser.EVT_WRN, function(e) {
          console.log(e);
        });
        ref.addEventListener('loadstart', function() {
          navigator.notification.activityStart("Please Wait", "Its loading.....");
        });
        ref.addEventListener('loadstop', function() {
          navigator.notification.activityStop();
        });

I think it help you :)

Neotrixsx avatar Sep 21 '17 10:09 Neotrixsx