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

Unable to identify network on iOS #283

Closed
Angelo029 opened this issue Feb 2, 2021 · 2 comments
Closed

Unable to identify network on iOS #283

Angelo029 opened this issue Feb 2, 2021 · 2 comments

Comments

@Angelo029
Copy link

Angelo029 commented Feb 2, 2021

Everything is working fine on android os, but on iOS, it is always unable to identify network. Anyone encountered this issue on iOS? If you encountered this, how did you resolve this? Advance thank you for the help :D

Device used:
iPhone 6 v12.4.8

@halaszbalazs
Copy link

Just ran into the same issue and after some research I ended up with making AJAX requests and calculating the time for the response as this component checks if the navigator vendor name contains Google or not (see this snippet:

).

If the navigator vendor does not contain "Google" then it returns with unknown network details, I guess thats because iOS Safari and Safari in all does not implemented navigator.connection which the component relies on.

@vinayakkulkarni
Copy link
Owner

That's cause downlink isn't supported out-of-the-box by iOS – https://caniuse.com/mdn-api_networkinformation_downlink

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

3 participants