Commit Graph

28 Commits

Author SHA1 Message Date
Pieter Van Poyer 3066e3cf88 Android - Fixes https://github.com/apache/cordova-plugin-network-information#110 (#114)
* Try to fix https://github.com/apache/cordova-plugin-network-information/issues/110 - The android JSONObject doesn't provide an equal implementation for JSON-Object.

* undo autoreformatting of android studio

* Android - remove JSONObject and extraInfo. KIS.

* Update src/android/NetworkManager.java

Co-authored-by: Tim Brust <ratchet.player@gmx.de>

* Update src/android/NetworkManager.java

Co-authored-by: Tim Brust <ratchet.player@gmx.de>

* Update src/android/NetworkManager.java

Co-authored-by: Tim Brust <ratchet.player@gmx.de>

* Android - code review PR

* Android - code review PR -> remove obsolete logging of constant WIFI

Co-authored-by: Tim Brust <ratchet.player@gmx.de>
2020-07-08 10:14:41 -03:00
Norman Breau ab7c85d2e7 refactor: Removed all references of deprecated navigator.network (#117) 2020-06-10 16:23:06 -03:00
PVPoyer 9a45d638ab The originally changes fixed the issue for Android 6+ devices, but broke anything below 6. API level/Android version check added. 2018-11-07 10:28:18 +01:00
PVPoyer 60ab69fe58 Try to fix: https://github.com/apache/cordova-plugin-network-information/issues/64: working with the ConnectivityManager.NetworkCallback in case of Lollipop and above, but switching to unknown if type none in the onavailable callback. 2018-11-06 10:34:50 +01:00
PVPoyer acc02f2981 removed autolayout 2018-11-05 16:13:11 +01:00
PVPoyer 08698002ce Try to fix: https://github.com/apache/cordova-plugin-network-information/issues/64: working with the ConnectivityManager.NetworkCallback in case of Lollipop and above 2018-11-05 13:48:50 +01:00
PVPoyer 394452aad1 more logging to trigger a new build. 2018-10-01 21:14:21 +02:00
PVPoyer cafdd673d5 Try to fix: https://github.com/apache/cordova-plugin-network-information/issues/64: in case of TYPE_NONE (android bug?) return TYPE_UNKNOWN if ConnectivityManager.EXTRA_NO_CONNECTIVITY from the intent return false. 2018-09-26 22:08:58 +02:00
Simon MacDonald 379b35debb CB-11734: Network Plugin uses Android Log class and not Cordova LOG class 2016-08-22 15:36:58 -04:00
Alexander Sorokin d29f28f6c4 CB-11300: (android) Recognize "2G", "3G" and "4G" network connection subtype names 2016-08-04 12:53:45 +03:00
NickyYo eaea5fd255 Update NetworkManager.java
Broken if.
2016-07-05 11:07:31 +01:00
Simon MacDonald 257e8ada4f Merge branch 'patch-1' of https://github.com/dankito/cordova-plugin-network-information
This closes #44
2016-07-04 09:34:17 -04:00
Rob Close da7e85ec92 CB-11384 android: Does not pass sonarqube scan
The problem is "Empty Catch Block", which sonarqube considers a blocker. Added
a log message to the empty block.
2016-06-29 14:06:04 -07:00
dankito 7a8971c2f9 Detection of Ethernet Network Type on Android
On an Android device with Ethernet interface we have to support NetworkInfo's typeName equals 'eth', therefore NetworkManager cannot determine Network Type (and returns 'UNKNOWN').
2016-06-28 09:06:49 +02:00
Joe Bowser d018f7ead9 CB-10160: Fixed the case mismatch issue 2015-12-17 11:23:33 -08:00
VinuL a34791c6ec Update NetworkManager.java
Removed String ETHERNET.
2015-08-28 08:51:20 +01:00
VinuL 82fed3f0b5 Update NetworkManager.java
I tried to use Ethernet link to my Android tablet using this cable

http://www.amazon.co.uk/Smays-Micro-USB-Ethernet-Computer-Notebook/dp/B009XU6N54

I noticed my app returned Network = None.

So I added this little patch so the app now works over Ethernet link.
2015-08-27 13:04:32 +01:00
Sid Ferreira 6550b937d0 Performance-related fix
Move all conversions to line 236, saving ~14 tests
2015-07-28 16:55:07 -03:00
Can Tecim c40e579c5a Solved toLowerCase issue with Locale.US 2015-07-26 21:11:52 +03:00
Andrew Grieve 165b4f0120 CB-7976 Android: Use webView's context rather than Activity's context for intent receiver 2014-11-06 16:21:52 -05:00
Joe Bowser 37c0e3ff75 CB-7595: Android L changes the type from Mobile to Cellular, I'm pretty sure this isn't documented 2014-09-22 10:27:10 -07:00
Ian Clelland a5e9631258 CB-6907: android: Don't crash on startup if no networks available 2014-06-10 09:51:11 -04:00
Max Woghiren 1cec040b30 Cached extra info to better detect changes. 2014-06-03 17:08:32 -04:00
Andrew Grieve 9b762951d4 [CB-4417] Move cordova-plugin-network-information to its own Java package. 2013-08-14 15:51:03 -07:00
Andrew Grieve 7abafdf621 [CB-4038] - Remove o.a.c.api namespace 2013-07-10 09:31:32 -04:00
Fil Maj 8f551d6e63 Fixed Network plugin: bad ref in plugin.xml. Added connection constants + additional global to attach to. networks JS now registers its own channel and attaches itself to deviceready as a requirement before firing deviceready. 2013-06-17 13:17:59 -07:00
hermwong 26f6c22049 updated path to apache core package 2013-05-15 16:04:29 -07:00
hermwong 012af5b8c5 added intial classes & files for network information plugin 2013-05-15 15:14:00 -07:00