cordova-plugin-ionic-webview
cordova-plugin-ionic-webview copied to clipboard
navigator.connection.type always returns 'unknown' on latest version(even 4.2+) even after platform.ready
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
@jcesarmobile @dpa99c tagging my two superheroes :) so this gets attention
please, don't do that