Open biblicabeebli opened 6 months ago
WOW this has become difficult: https://stackoverflow.com/questions/30743408/check-for-internet-connection-with-swift?page=1&tab=scoredesc#tab-top
Old behavior always returned connected on wifi. Added app entitlement that changed to completely block this back in ios 13. Old Reachability.swift appears to be broken, the stack overflow post has a huge comment thread on problems with the top solution.
Alamofire seems to have something very similar built in but it has similar bugs, probably because we are on an old version.
I have had to reimplement Reachability.
Reachability is a data stream that indicates what internet mode the device is in, e.g. wifi, cellular, or unreachable. The library used was last updated for iOS 10 and cannot be made compatible again.
Reachability and probably upload-over-cellular was non-functional on all iOS versions since September 13, 2016.
Cool. Great. Fun.
For technical reasons determining "unreachable" is very, very difficult to do cleanly. The reachability data stream now only says "wifi" or "cellular", with "cellular" potentially meaning no connection. Restoring "unreachable" is potentially feasible, but requires the app do an extra network operation quite frequently.
The upload-over-cellular study setting has been fixed.
pushing to build 2024.19
@hydawo I expect someone somewhere will want to know about this kerfuffle.
This issue is not of critical importance, if anyone wants this data stream upgraded/fixed they can comment on this thread, we will keep this thread open.
If I enable airplane mode while testing (I was testing uploads) it still tries to upload.