Page 1 of 1

window.open causes apk services to fail (Libraries version 2.1 use inAppBrowser)

Posted: Mon Jun 01, 2015 7:23 pm
by Sam7563891

It is good to see such an active community.
I have a question that has had some historical activity within the community, but I was not able to find my specific issue.

I would like to launch a web page from within my app.

I am currently testing the apk, but hope that it will work in both apple and android.

I get the same results when I use any of the following:
1) window.open _system
2) window.open _blank
3) var childBrowser = ChildBrowser.install();
window.plugins.childBrowser.showWebPage('http://google.com');

These window open, but I cannot return to a fully functioning app.
The app navigates, but no service work any longer. Not the camera and geolocate native services and not any REST services.

What is causing the app to hang up?
Sam


window.open causes apk services to fail (Libraries version 2.1 use inAppBrowser)

Posted: Thu Jun 04, 2015 6:47 am
by Alena Prykhodko

Hello Sam,

Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.


window.open causes apk services to fail (Libraries version 2.1 use inAppBrowser)

Posted: Fri Jun 05, 2015 2:09 pm
by Sam7563891

My problem has to do with what I am calling. The site I call needs a

app settings external resources User-defined resources

I load the resource in the appery app, but I do not think that "transfers" to the inAppBrowser on window.open ('...','blank') or to Chrome on window.open ('...','system').

Sam


window.open causes apk services to fail (Libraries version 2.1 use inAppBrowser)

Posted: Wed Jun 10, 2015 2:55 am
by Yurii Orishchuk

Hi Sam,

All device native features available only from app context.

So if you run it from iframe of inappbrowser it will not work.

You need to send some event from your inappbrowser to app cordova context.

Check how to do it here: http://www.telerik.com/blogs/cross-wi...

Regards.