You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.
This should not be done, since it might lock up the application if there is no or hardly network available, and cause the app to be killed by the watchdog.
As Apple reminded lots of times in its sessions in all past WWDCs, reachability should only be used after a connection failed and not before connecting. Also it should never be done in the main thread on startup.
P.S.: I saw other developers doing this and having loads of problems, including crashes on startup, due to the watchdog coming up.
The text was updated successfully, but these errors were encountered:
If I am reading the source correctly, you are checking for reachability in the init method on the main thread: https://github.com/MugunthKumar/MKNetworkKit/blob/master/MKNetworkKit/MKNetworkEngine.m#L93
This should not be done, since it might lock up the application if there is no or hardly network available, and cause the app to be killed by the watchdog.
As Apple reminded lots of times in its sessions in all past WWDCs, reachability should only be used after a connection failed and not before connecting. Also it should never be done in the main thread on startup.
P.S.: I saw other developers doing this and having loads of problems, including crashes on startup, due to the watchdog coming up.
The text was updated successfully, but these errors were encountered: