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

This forum contains topics that were moved from Get Satisfaction
Sam7563891
Posts: 0
Joined: Mon Jun 01, 2015 4:36 am

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

Post 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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

Post by Alena Prykhodko »

Hello Sam,

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

Sam7563891
Posts: 0
Joined: Mon Jun 01, 2015 4:36 am

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

Post 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

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

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

Post 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.

Post Reply