ionic-team / ionic-team/cordova-plugin-ionic-webview

navigator.connection.type always returns 'unknown' on latest version(even 4.2+) even after platform.ready

Open
#606 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
493
Forks
410
PR merge metrics
No merged PRs in 30d

Description

So just to confirm I downgraded my plugin to 4.1.3 and navigator.connection.type returns 'wifi' correctly. I upgraded the plugin to latest version, now it returns 'unknown' always. Because of this, I am not able to check proper internet connection on app.
Also navigator.onLine is always true.

simply call navigator.connection.type in debug mode to check the value.

tested with Google Pixel 2XL device, Android 10.

**workaround for now: downgrade to 4.1.3**

Now it shows 'wifi' for online, 'none' for offline and navigator.onLine returns true/false properly

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.