Software Archive
Read-only legacy content
17061 Discussions

Trouble with InAppBrowser under CLI 5.4.1

Jochen_M_1
Beginner
285 Views

Good morning,

​I have trouble with the InAppBrowser under CLI 5.4.1.

When I create a brandnew Cordova project and install the InAppBrowser plugin, it will not work inside the app - it always opens a website in Google Chrome. I know how to use the window.open command here - even when I set the target to "_self" it will open Chrome.

When I install the app on my android tablet inside the installation window is normally displayed that the app will access the internet. But this is not shown although the InAppBrowser plugin is installed (v.1.3.0). The problem can be reproduced in the emulator, too.

When I use CLI 5.1.1 it will work properly, even in old apps that I convert to CLI 5.4.1.

Am I doing something wrong here?

​Best Regards,
​Jochen

 

0 Kudos
1 Reply
PaulF_IntelCorp
Employee
285 Views

I recommend you DO NOT use the window.open() technique and use the direct API calls defined by that plugin. See the plugin docs for details > https://www.npmjs.com/package/cordova-plugin-inappbrowser. Also be sure your whitelist entries are appropriate for the sites you are attempting to open with this tool.

0 Kudos
Reply