문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top