Domanda

I'm developing and iOS/Android application with Sencha Touch 2 and Phonegap 2.7.0. I'm trying to make a JS function that would open a given url in device default browser.

window.open(link, '_system'); works just fine for iOS, but neither this, nor any other ways work for Android. It either opens a link inside the app (instead of content), or doesn't open it at all.

I have <access origin=".*"/>; inside config.xml (tried different ways, none works).

Is there any way to make it work?

È stato utile?

Soluzione

It was my mistake: I've accidentally copied iOS's cordova.js file into Android's project.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top