question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERR_CLEARTEXT_NOT_PERMITTED with android 9

See original GitHub issue

Hi, Getting this error when using yarn cordova-serve-android It seems that android 9 disables cleartext by default. The solution suggested here works: https://stackoverflow.com/questions/54752716/why-am-i-seeing-neterr-cleartext-not-permitted-errors-after-upgrading-to-cordo

Happy to create a PR if you agree with the implementation.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
m0dch3ncommented, Jun 24, 2019

when I developped the plugin (before cordova 8.0), it was the inverse problem, that serving over https did not work.

But I think we can now switch to https, knowing, that if the app will contact any external api server over http will no longer work then…

0reactions
m0dch3ncommented, Jun 25, 2019

@m0dch3n options.devServer.https || true is always true

Thx 🙈 I fixed this now…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix ERR_CLEARTEXT_NOT_PERMITTED Error for Websites
Starting with Android 9.0 cleartext support is disabled. This guide will help to fix err_cleartext_not_permitted error for the insecure ...
Read more >
ERR_CLEARTEXT_NOT_PERMI...
On an Android 10 device, I get an ERR_CLEARTEXT_NOT_PERMITTED error in webview on my http server, but only on some pages, and even...
Read more >
ERR_CLEARTEXT_NOT_PERMI...
ERR_CLEARTEXT_NOT_PERMITTED On Android | how to fix ... android9, android error err_cleartext_not_permitted,application error ...
Read more >
How to fix the "net::err_cleartext_not_permitted" Android ...
Cleartext is typically sent over an HTTP (hypertext transfer protocol) URL. Following the Android 9 update, all applications using Android ...
Read more >
Fix Cleartext Traffic Error in Android 9 Pie | by Rommer Cañete
The default value in Android P is “false”. Setting this to true indicates that the app intends to use clear network traffic. <application...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found