[InAppBrowser Plugin] InAppBrowser Plugin error wile opening url - ERR_CLEARTEXT_NOT_PERMITTED

Forge Component
(9)
Published on 18 Oct by OutSystems R&D
9 votes
Published on 18 Oct by OutSystems R&D

Hi,


I am facing error while trying to open url in plugin - ERR_CLEARTEXT_NOT_PERMITTED.

It was working before.

Anyone else is also facing the same ?

Thanks,

Vani

Solution

Hi Vani,


Are you using MABS 5 to build your app?

In MABS 5 we introduced the support for Android P which disables blocks the communications over HTTP. To overcome that you can follow the Plugin documentation available here


Thanks.

Solution

I figured that Http urls are not getting opened in In App browser. But when you change to Entities.Target.SYSTEM it works.


I want to open HTTP url in "Entities.Target.IN_APP_BROWSER". Anyone has a solution for this ?

Thanks Vitor Oliveira :)

As mentioned in documentation, i followed this and it worked :

For MABS 5 or upper versions

Plugin Versions

  • O10:  >= 1.1.0
  • O11: >= 2.1.0

Android P blocks the usage of HTTP requests by default, in case of need to open a URL with HTTP a preference can be specified in the application extensibility configuration:

{ "preferences": { "android": [ { "name": "InAppBrowserCleartextTrafficPermitted", "value": "true" } ] } }