cordova - Phonegap window.open does not work on Android -


i have ios/android app built on cordova 2.6 , jqm 1.3. need open link external website after user clicks on button. code using is:

var ref = window.open('http://google.com','_self','location=yes'); ref.addeventlistener('loadstart',function(event) {     console.log('load started'); }); ref.addeventlistener('loadstop',function(event) {         console.log('load stopped'); }); ref.addeventlistener('loaderror',function(event) {     console.log('load error = ' + json.stringify(event)); }); 

on ios performs expect. new browser window opens google website loaded. cannot to load in android. when click on button, nothing happens. have put in console statements before , after window.open, know code @ least being executed.

my config.xml should wide open white listed sites:

<access origin=".*"/>; 

i have tested on nexus 7 (android 4.2) , android 2.2 emulator same results on both.

does know why window.open not firing correctly on android?

it looked problem 2.6 loading plugins on android. upgraded 2.7 , started work.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -