function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael-FitzgeraldMichael-Fitzgerald 

PhoneGap InAppBrowser Unresponsive

I have the InAppBrowser working when the app is loaded but when I resume the application I am getting an unresponsive call to window.open.

I am verifying the device is ready and I even reload the page on resume to try and reinitialize but still not working.

 

$(document).ready(function(){
	// Register the event listener
		document.addEventListener("deviceready", onDeviceReady, false);
		function onDeviceReady() {
			// Register the resume event listener
			document.addEventListener("resume", onResume, false);
		}

		function onResume() {
			alert("Resuming Application...");
			window.location.reload();
		}
 }); 

 

In the below snippet both alerts fire but the window.open does nothing after the initial load. 

               $('.href-google').click(function(){
                    alert('b4');
                    window.open('http://google.com', '_blank', 'location=yes');
                    alert('after');
                });

 Is there anything special that needs to happen to reinitialize cordova besides deviceready to get window.open to work again? Is anybody else seeing this?

 

I have cordova 2.3 js file within the VF page and natively on the ios device.

 

Thanks