-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Introduce a setConnected method to manually set a connected flag #6618
Conversation
For testing purposes, a new SNAPSHOT build has been triggered via https://www.bitrise.io/build/a66f375f4c7a5408 and it's now available in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zugaldia This covers the HTTPRequest
case, but not the core connectivity. The receiver that is started here will still inform the core about connectivity, through NativeConnectivityListener
I should've consolidated both right away, bit of a mess.
Yes. Let's not merge this PR until we take care of the |
Definitely. It will resume less quickly probably and needs some testing to be sure. But this is by far the easiest way for now. |
@ivovandongen Thinking about it, the problem with the constructor approach is that it can only be set once, and if the app connectivity state changes, there's no way to inform |
Updated build happened via https://www.bitrise.io/build/5a1b3138c006b2e2 and it's now available here: |
The previous snapshot was accidentally built from the wrong branch ( |
Currently, the PR only covers the usecase where an app handles its connectivity state internally and bypasses
ConnectivityManager
.Fixes #6617.
/cc: @danswick @mapbox/android