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 we can check either the connected connection is poor? #76

Open
najamsaqib-devcreew opened this issue Jun 11, 2023 · 2 comments
Open

Comments

@najamsaqib-devcreew
Copy link

I wanted to the user an alert when the connected internet connection is poor.

I didn't find a way to do that, Could you please help me how I can do it while using this library.

Thanks.

@ayush-ridecell
Copy link

One way of doing that would be to define what poor connectivity means to your app. ATM the library calls the certain amount of connectivityURLs to determine whether a device is online or offline. You can calculate the time it takes to complete those calls and then define an enum to say if the time was greater than 4 seconds, the connection is poor. Or if the time taken was less than a second then the connection is fast.

Anyways it'd be a good feature for the library to provide.

@ayush-ridecell
Copy link

@rwbutler Would it be possible to add such a functionality to the library itself? Also, do you see any issues with the approach mentioned-above? Would love to hear your thoughts.

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