Problems with InAppBrowser and _system

670 views
Skip to first unread message

Matze Elbeshausen

unread,
Apr 4, 2014, 9:39:08 AM4/4/14
to phon...@googlegroups.com
I recently updated to phonegap 3.4 and now I'm facing some problems with the inAppBrowser.
The plugin was installed via "cordova plugin add org.apache.cordova.inappbrowser" and urls are called via window.open(url, '_system'); but they are not opened in System Browser, but directly within the app...
Do I have to set any additional preferences within config.xml? There was the preference "stay-in-webview", but that's seems to be unavailable by now...

Nym

unread,
Apr 4, 2014, 5:46:09 PM4/4/14
to phon...@googlegroups.com
I'm facing the same basic issue. All I'm looking to do is to make sure that links (on my site that is loaded in the InAppBrowser) leading to any other domain (note white listed in the config.xml) are opened in the system browser. Any insight on how to address this would be most appreciated.

Appsotutely

unread,
Apr 6, 2014, 12:32:14 PM4/6/14
to phon...@googlegroups.com
Which platform are you having issues with and how did you install the plugin?  At the moment, I can't get the latest version of inappbrowser to install via "cordova plugin add org.apache.cordova.inappbrowser" - it gives me installation errors.  Instead I have to force install of the 0.3.0 version to get the install to run properly in the CLI: "cordova plugin add org.apache.cord...@0.3.0"

If you use "window.open(url, '_system');" and it opens in the app's window, then the inappbrowser plugin is probably not installed properly.

Perry

Matze Elbeshausen

unread,
Apr 7, 2014, 2:37:39 AM4/7/14
to phon...@googlegroups.com
I have no problems with installing the plugin via "cordova plugin add org.apache.cordova.inappbrowser", which leads to version 0.3.3.
Even removed it and reinstalled version 0.3.0, but facing the exact same problem on android and ios (which are all platforms I'm using)...

Matze Elbeshausen

unread,
Apr 7, 2014, 2:53:39 AM4/7/14
to phon...@googlegroups.com
Ok, after reinstalling the plugin I'm getting this error in xcode after clicking on a link:
ERROR: Plugin 'InAppBrowser' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
But in the config.xml I've got this:
    <feature name="InAppBrowser">
        <param name="ios-package" value="CDVInAppBrowser" />
    </feature>
...and xcode is listing the m/h-files and is not complaining about any missing files :(

Matze Elbeshausen

unread,
Apr 7, 2014, 4:12:45 AM4/7/14
to phon...@googlegroups.com
I found a workaround that at least works for me on ios:
Remove the platform via CLI and add it again. That's not a good solution especially when you changed a lot of things for the platform (as I did), but at least after that it works again.

Nym

unread,
Apr 7, 2014, 9:14:09 AM4/7/14
to phon...@googlegroups.com
Could you post basic example of config.xml, specifically the access origin... and how you are linking? are you simply using target="_blank" or target="_system" or are you making the js window.open call on those links you want to open in system browser?

Thanks 

Matze Elbeshausen

unread,
Apr 7, 2014, 9:47:19 AM4/7/14
to phon...@googlegroups.com
I'm only using window.open(url, '_system'), so basically never really the inappbrowser itself, just the functionality...
The access origin in my config.xml is *

Nym

unread,
Apr 7, 2014, 11:38:18 AM4/7/14
to phon...@googlegroups.com
Thanks, thats basically the same as what I'm doing. I guess where it's affecting me is, I am opening a site (one that I control) in the InAppBrowser. I am wanting links to third party sites in there to then open in the system browser.

Orang-Utan Klaus

unread,
Apr 8, 2014, 3:02:24 AM4/8/14
to phon...@googlegroups.com, dorsey...@gmail.com
So, for you the inappbrowser opens the link correctly?
Then I think, you need to add some javascript to the site that is opened in the inappbrowser, to open that links in system browser...
Reply all
Reply to author
Forward
0 new messages