Skip to content

Conversation

@vy8
Copy link
Contributor

@vy8 vy8 commented Jan 8, 2019

Changing targetSdkVersion to 28 has introduced a side effect where clear text communication is no longer allowed.
When I run the app with a 28 emulator I get an error
<-- HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to www.mocky.io not permitted by network security policy

The easy solution would be to change the http://www.mocky.io/v2 endpoint to https. However their SSL configuration is bad and SSL requests to mocky.io get bounced.
They have an issue regarding this here: https://github.com/julien-lafont/Mocky/issues/35
Also it is evident when scanning them with this tool: https://www.sslshopper.com/ssl-checker.html#hostname=https://www.mocky.io/

This PR allows cleartext communication on 28 as described in this SO answer: https://stackoverflow.com/a/50834600/1803821

@amitshekhariitbhu amitshekhariitbhu merged commit f16a4bd into janishar:master Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants