Commit Graph

59 Commits

Author SHA1 Message Date
Ken'ichi Fukushima
4c49a5b714 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
2017-03-02 16:46:13 -08: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
Anis Kadri
41642e745d Merge branch 'tizen' of http://github.com/siovene/cordova-plugin-network-information into dev 2014-01-27 22:57:16 -08:00
Steven Gill
50218b43e2 added ubuntu support 2013-12-02 16:27:38 -08:00
Salvatore Iovene
a78e4c5dc7 Initial implementation of Tizen plugin. 2013-11-28 10:44:14 +02:00
purplecabbage
c7f3689d7b [windows8] commandProxy was moved 2013-09-24 01:59:03 -07:00
Maxim Ermilov
43245253e8 add ubuntu platform 2013-09-22 08:40:51 +04:00
hermwong
c742580916 added Network APIs for FirefoxOS 2013-09-17 15:39:55 -07:00
lorinbeer
061bccf669 CB-4432 copyright notice change 2013-08-20 14:27:40 -07:00
lorinbeer
2b7b208ee4 CB-4432 copyright notice change 2013-08-20 14:27:27 -07:00
Andrew Grieve
9b762951d4 [CB-4417] Move cordova-plugin-network-information to its own Java package. 2013-08-14 15:51:03 -07:00
Herm Wong
96b0c5d2f6 added firefoxos network apis 2013-07-30 16:09:21 -07:00
purplecabbage
c687a3de2e [Windows8] Added support for Windows8 2013-07-29 18:11:18 -07:00
lorinbeer
c16ab8cfb3 [CB-3732] network plugin breakout for blackberry 2013-07-16 14:13:21 -07:00