I was among the people who misused the SCNetworkReachability, my algirithm was: (NetworkStatus) networkStatusForFlags: (SCNetworkReachabilityFlags) flags
{
NetworkStatus status = NotReachable;
if (flags & kSCNetworkReachabilityFlagsReachable) {
if (flags & kSCNetworkReachabilityFlagsIsWWAN) {
status | = ReachableViaWWAN;
}
if (! (flags & kSCNetworkReachabilityFlagsTransientConnection)) {
status | = ReachableViaWiFi;
}
}
return status;
}
Who considers the status not reachable when I receive kSCNetworkReachabilityFlagsTransientConnection and I am reachable and not in WWAN.
Thanks for your help
Post
Replies
Boosts
Views
Activity
I wanted to know the status of the network from the received flags and be notified when this is changed.
The statuses are:
NotReachable
ReachableViaWWAN
ReachableViaWiFi
Hello,
I had the same problem, I tried to add flags during the interruption and try to do an audio reset (re-creation of the AudioUnit instance) it worked but the problem I had this code error without the system sending me these interrupts