You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do we need to use the channels in a background thread always?
Is there a plan to make its usage safe in activities using listeners and without worrying about NetworkOnMainThreadException?
I recently got NetworkOnMainThreadException when switching to SSL endpoint. I digged a bit and found it coming from okhttp. Pretty much same issue as here square/okhttp#2017
The text was updated successfully, but these errors were encountered:
I think the advice given in the linked issue for okhttp is the correct advice and should be applied here. Network activity on Android should not be done on the main thread.
Do we need to use the channels in a background thread always?
Is there a plan to make its usage safe in activities using listeners and without worrying about NetworkOnMainThreadException?
I recently got NetworkOnMainThreadException when switching to SSL endpoint. I digged a bit and found it coming from okhttp. Pretty much same issue as here square/okhttp#2017
The text was updated successfully, but these errors were encountered: