Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to handle no internet connection #5

Open
iamkdblue opened this issue Aug 24, 2020 · 1 comment
Open

How to handle no internet connection #5

iamkdblue opened this issue Aug 24, 2020 · 1 comment

Comments

@iamkdblue
Copy link

iamkdblue commented Aug 24, 2020

Thanks for this great project

I tried your code, but its show whole IP address of API, but I want to show only "no internet connection when there is no internet connection"

@mwshubham
Copy link
Contributor

In this project, We are simply sharing the exception message or a generic message "Something Went Wrong"
We can handle no internet available scenario based on our application architecture to check the internet before making call.

https://github.com/MindorksOpenSource/Kotlin-Coroutines-Android-Examples/blob/adc18ea7213887e0da6924bd6efa0bf0158e60de/app/src/main/java/com/mindorks/example/coroutines/learn/retrofit/single/SingleNetworkCallViewModel.kt#L31

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

No branches or pull requests

2 participants