What are the possible network connection types? #2444
Unanswered
coffeymatt
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Im experiencing the exact same. Always getting 4g while connected to wifi. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For Capacitor 3 we are moving plugins out of Capacitor. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to detect whether the user has a data connection (not just cellular/voice), but it's not clear how to do that from the docs. I thought this could be determined from the connection type, but the potential values for this property are not well defined or documented.
When I look at the interface for what 'Network.getStatus()' returns it says:
connectionType: 'wifi' | 'cellular' | 'none' | 'unknown';
But when I test in a PWA it returns none of these values (in fact it returns '4g' despite being on ethernet). Can the docs and this interface be updated with the potential values this can be, and perhaps provide a simple boolean property for 'data' rather than just 'connected' (as that could just be voice right?) ?
Beta Was this translation helpful? Give feedback.
All reactions