Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top