Internet Data Down Bug Fix
Obtaining the Release
Description
This is a patch release for a bug in version 7.0.2.
Changes
Bug Fixes
- App now correctly notifies you if Port Authority's servers are down or if your phone data has issues
Description
The app incorrectly notified the user that their internet is down, when in fact, the phone is fine when Port Authority's site is down. Now, the phone will correctly distinguish these two cases.
This bug happened because we would check the internet down state on IOException
. When Port Authority's servers are down, Retrofit
(the library we use to poll internet requests from Port Authority) will throw a SocketTimeoutException
if the servers refuse to send a response. We didn't realize that this extended IOException
, so the app mistakenly would think that the phone's connection is down.
To fix this, I made sure to add logic where I check to make sure that the error thrown by Retrofit is an IOException
but not a SocketTimeoutException
.