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

Not detecting offline when airplane mode on before launching #3

Closed
avi-midtown opened this issue Sep 6, 2018 · 2 comments
Closed

Comments

@avi-midtown
Copy link

Steps to reproduce

  1. Make sure the app process is stopped (force close if needed).
  2. Turn airplane mode on.
  3. Launch the app.
  4. Expect to see status "No internet connection", but nothing happens.
  5. Turn airplane mode off, then back on (while app's still running).
  6. Now status is visible.
@avi-midtown
Copy link
Author

After inspecting runtime behavior, it seems like the AlamoFire callback is not called with the initial state. Maybe should call manually networkStatusChanged(reachability!.networkReachabilityStatus, animated: true) for the first time.

@fraserscottmorrison
Copy link
Contributor

With the demo project it was working fine, but yes on other projects I could reproduce it.

Thanks for raising - Ive just pushed out a fix

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