Not identifying whether online or offline on IOS 11.0 & above


#1

I have added this code after that it is not working.not gettig device online or offline.
$scope.network = $cordovaNetwork.getNetwork();
if ($cordovaNetwork.isOnline ()){
// code for online
}else{
// code for offline
}