I’m testing on my Nexus 7 which has a full strength WiFi connection and no problem accessing the internet. However I’m seeing ‘nil’ from network.canDetectNetworkStatusChanges
The same exact code running in the simulator shows ‘true’.
If I inspect the ‘network’ object on device, I see just a few fields:
Hi moderators, maybe the eng team could take a peek at the source and let us know what the conditions are for this value returning something other than true? I’m currently working around this by manually checking the network connection via socket, but that makes it challenging to monitor for changes in network availability without constantly polling.
Network status (network reachability) is only available on Mac and iOS platforms. The network.canDetectNetworkStatusChanges call will return nil/false, indicating that the feature is not supported on Android.
Hi moderators, maybe the eng team could take a peek at the source and let us know what the conditions are for this value returning something other than true? I’m currently working around this by manually checking the network connection via socket, but that makes it challenging to monitor for changes in network availability without constantly polling.
Network status (network reachability) is only available on Mac and iOS platforms. The network.canDetectNetworkStatusChanges call will return nil/false, indicating that the feature is not supported on Android.