hb condo
Posts: 0
Joined: Mon Jul 14, 2014 7:38 am

window.open _system not working

Prior to Appery's big upgrade, my iOS app opened external links to the device's default web browser (Safari) using the javascript window.open(url, _system).

After Appery's bug upgrade, now those external links open within the app itself. Why did this change and how can I get the original functionality back so external links open in a new browser windows outside of the app?

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

window.open _system not working

Hello,

Could you tell us what device and iOS version you are testing on ?

hb condo
Posts: 0
Joined: Mon Jul 14, 2014 7:38 am

window.open _system not working

The issue occurs iPhones and iPads running iOS 7 & iOS 8. I think this started when the project was migrated from 2.0 to 2.1 libraries.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

window.open _system not working

Hello,

It seems your app prevents to start cordova, and thus native functions will not work.

Please check it with following way:

  1. Enable WEINRE debugger(details here: https://devcenter.appery.io/documenta...)

  2. Open WEINRE.

  3. Run app.

  4. Make sure your app loaded in current WEINRE session.(For example you can type alert("here") in weinre console.

  5. Check in console whether you have any cordova errors.

    Regards.

hb condo
Posts: 0
Joined: Mon Jul 14, 2014 7:38 am

window.open _system not working

The app works fine in Appery's Test Suite for iOS so that means Cordava is running, correct?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

window.open _system not working

Hello,

Nope, to test "_system" you need to run app in a native mode:

  1. Export app to binary.

  2. Install this app to the device.

    Regards.

Return to “Issues”