Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jochen_M_1
Beginner
34 Views

Trouble with InAppBrowser under CLI 5.4.1

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

 

Tags (2)
0 Kudos
1 Reply
PaulF_IntelCorp
Employee
34 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.

Reply