cordova-plugin-themeablebrowser
cordova-plugin-themeablebrowser copied to clipboard
Show loading
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 }
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 :)