Skip to main content

Posts

Showing posts from February, 2015

JS: Open on InAppBrowser for Cordova/Phonegap based mobile application

There is requirement when we want to load the external link inside our mobiapp. So to ease the process I have created a class that will help in achieving it. You just have to create an instance of it. That's it! var OpenOnInAppBrowser = function () { window.name = "projectname"; var iabRef = null; window.notifier = { flag: false, start: function() { if(!window.notifier.flag) { window.notifier.flag = true; navigator.notification.activityStart('Loading!', 'Please wait ...'); } }, stop: function() { window.notifier.flag = false; navigator.notification.activityStop(); } } var iabLoadStart = function (event) { console.log('OpenOnInAppBrowser -> iabLoadStart: ' + event.type + ' - ' + event.url); window.notifier.st