cordova-plugin-ionic-webview icon indicating copy to clipboard operation
cordova-plugin-ionic-webview copied to clipboard

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

Open sardapv opened this issue 5 years ago • 2 comments

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

sardapv avatar Aug 28 '20 12:08 sardapv

@jcesarmobile @dpa99c tagging my two superheroes :) so this gets attention

sardapv avatar Aug 28 '20 12:08 sardapv

please, don't do that

jcesarmobile avatar Aug 28 '20 12:08 jcesarmobile