Closed linster closed 4 years ago
Thanks for reporting this. It should be quick fix.
Is this fixed by https://github.com/pwittchen/ReactiveNetwork/pull/376?
No, because http
protocol is defined instead of https
in the InternetObservingSettings
class.
Excuse me, is this issue solved? Cause I'm using the last version, but it throws the same exception.
No. I was busy doing other stuff, so I haven't done it yet. I'll probably fix it later. I'm also open for PRs if you want to have it fixed sooner.
Hi, M.r pwittchen. have you fixed this problem..? cause I'm using this library in my app and it's not working on android 9 version
I consider this quite a big problem. Will this be fixed?
fixed, it will be available in the next release (probably this week)
Describe the bug Default InternetObservingSettings object uses http, causing Android 9 to fail on clear-text traffic
To Reproduce Steps to reproduce the behavior:
ReactiveNetwork.observeInternetConnectivity()
to get anObservable<Boolean>
Expected behavior Should return an Observable of true.
Actual Behaviour Exceptions are put into the Observable's error stream.
Root cause In
InternetObservingSettings.java
, the default value for host uses HTTP. Since this is set here, theWalledGardenInternetObservingStrategy
does not use it's DEFAULT_HOST parameter.Smartphone (please complete the following information):