Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS12 bug, API cannot callback normal! #171

Open
Cellphoness opened this issue Oct 19, 2018 · 1 comment
Open

iOS12 bug, API cannot callback normal! #171

Cellphoness opened this issue Oct 19, 2018 · 1 comment

Comments

@Cellphoness
Copy link

mac environment, simulator ios12, when I shortdown the WIFI, Reachability calback NotReachable.
then i connect to WIFI, Reachability cannot callback any more!
I set breakpoint in Reachability.m to monior
`static void ReachabilityCallback(SCNetworkReachabilityRef target, SCNetworkReachabilityFlags flags, void* info)
{
#pragma unused (target, flags)
NSCAssert(info != NULL, @"info was NULL in ReachabilityCallback");
NSCAssert([(__bridge NSObject*) info isKindOfClass: [Reachability class]], @"info was wrong class in ReachabilityCallback");

Reachability* noteObject = (__bridge Reachability *)info;
// Post a notification to notify the client that the network reachability changed.
[[NSNotificationCenter defaultCenter] postNotificationName: kReachabilityChangedNotification object: noteObject];

}`
the bug just appears in ios12, it totally seems fine in my ios10 simulator...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants