Commit Graph

71 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
Norman Breau
ed8f15e91d
refactor(eslint): use cordova-eslint (#115) 2020-06-08 12:44:54 -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
maverickmishra
a15fc1cae5 CB-13663 : Removed deprecated platforms 2017-12-12 11:20:47 -08:00
Connor Pearson
2fd3c1cc43 CB-12751: (ios) Fix connection type when airplane mode is on
This closes #54
2017-10-10 23:07:31 +02:00
Audrey So
78691e43e1 CB-12895 : added eslint and removed eslint 2017-08-02 10:52:17 -07:00
Ken'ichi Fukushima
f4f1abec3a CB-11838 ios: Unregister callback function at the right timing.
We at LINE observed about 40K crashes a day that were suspected to be
caused by the reacahability callback function invoked on an
already-deallocated object. We couldn't reproduced the crash locally
but this patch did reduce the number of crash reports to zero.

 This closes #49
2016-12-29 00:26:44 +01:00
Nikita Matrosov
c911ef883c CB-11230 CB-11505 iOS: Add compatibility with IPv6
Remove the logic associated with the local wi-fi because of the narrow use case for this API and the large potential for misuse

See also docs https://developer.apple.com/library/content/samplecode/Reachability/Listings/ReadMe_md.html#//apple_ref/doc/uid/DTS40007324-ReadMe_md-DontLinkElementID_11

 This closes #51
2016-11-17 09:49:06 +03: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
allenconquest
3ded941ff3 fixed two potential memory leaks when doing Analyze on iOS 9 2016-06-29 14:06:04 -07: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
daserge
b6f537fe4c CB-10636 Add JSHint for plugins 2016-03-01 10:23:03 +03:00
edparsons
3bf19c4c02 Adding notification for CT radio information 2015-12-28 10:18:01 +00:00
edparsons
791d828fd4 Adding CT radio information 2015-12-28 09:20:21 +00:00
Joe Bowser
d018f7ead9 CB-10160: Fixed the case mismatch issue 2015-12-17 11:23:33 -08:00
Perry Stoll
5aac2609ce These notifications are objects so their address always evaluates to true. 2015-10-05 10:51:02 -04: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
Jesse MacFadyen
7caab2543a Moved browser proxy to src/., This closes #18, closes #22, closes #23, closes #26 2015-08-25 15:42:43 -07: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
Vladimir Kotikov
a8c5507853 CB-8185 Use navigator.onLine as connection information source on browser platform
* add support for `online`/`offline` events for browser
2015-03-17 14:28:45 +03:00
Ian Clelland
6ae87c9dc0 CB-8659: ios: 4.0.x Compatibility: Remove use of initWebView method 2015-03-13 11:03:29 -04:00
sgrebnov
9710603feb CB-8384 Network status change support on Windows 2015-01-30 16:10:59 +03:00
sgrebnov
d8a714757f CB-8384 Fixes the way we detect online status on Windows 2015-01-30 15:37:16 +03:00
sgrebnov
fb608698e5 CB-8384 Add Windows section to Network Information plugin 2015-01-30 14:57:10 +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
Rodrigo Silveira
ec96704786 Fix network information type exception on fxos 2 2014-09-11 14:02:01 -07:00
Suraj Pindoria
a810b7db99 Added support for the browser 2014-09-05 10:03:11 -07:00
Willy Aguirre
5312485555 update NetworkProxy.js 2014-07-29 06:39:05 -05: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
Piotr Zalewa
7b4c96ec72 merged apache/dev 2014-04-23 11:08:24 -04:00
Yann Lugrin
e0d3ae00b7 CB-6350 - Fix networkStatusForFlags return value type to work with 64-bit iOS
(closes #8)

Signed-off-by: Shazron Abdullah <shazron@apache.org>
2014-04-21 17:48:20 -07:00
Ian Clelland
b5e61fac04 CB-6465: Add license headers to Tizen code 2014-04-17 09:50:40 -04:00
Rodrigo Silveira
4400503400 Initial version of firefox os network information plugin 2014-04-09 15:16:23 -07:00
Jesse MacFadyen
69815320d1 CB-6422 [windows8] use cordova/exec/proxy 2014-04-08 16:34:37 -07:00
Elad Katan
6831f06685 CB-6342 - iOS reports a cellular connection even when in Airplane mode 2014-03-24 15:52:12 -07:00
Piotr Zalewa
37047348db there was an error in the object definition 2014-03-15 18:44:57 -07:00