Page 1 of 1

window.open _system not working

Posted: Wed Apr 01, 2015 11:56 pm
by hb condo

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?


window.open _system not working

Posted: Thu Apr 02, 2015 6:49 am
by Egor Kotov6832188

Hello,

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


window.open _system not working

Posted: Thu Apr 02, 2015 8:01 am
by hb condo

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.


window.open _system not working

Posted: Fri Apr 03, 2015 12:35 am
by Yurii Orishchuk

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.


window.open _system not working

Posted: Fri Apr 03, 2015 8:04 am
by hb condo

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


window.open _system not working

Posted: Mon Apr 06, 2015 2:54 am
by Yurii Orishchuk

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.