I have a cricket scoring app that's been running for over 10 years. The app updates a website so the community can follow live scores (It uses OkHttp for the uploads). Sometimes during the course of the game the uploads stop working, and the only way to get it working again is to close the app and open it again, and if that doesn't work then the user has to restart their device completely. That always sorts out the issue
For many years I used a Background Service to run every 20 seconds to upload the information to a MySQL DB. I read that services were no longer recommended so I moved to a process whereby after each ball is input into the device, the upload process will then run. This has certainly improved the stability of the uploading process, but I still have instances where everything will be working fine and then suddenly the the uploads won't work anymore. The user then has to restart their device.
What could possibly cause the app to "lock up" to such an extent that only a restart of the device can solve the issue? It's completely random. The user could have no issues for weeks and then suddenly it will happen.
For many years I used a Background Service to run every 20 seconds to upload the information to a MySQL DB. I read that services were no longer recommended so I moved to a process whereby after each ball is input into the device, the upload process will then run. This has certainly improved the stability of the uploading process, but I still have instances where everything will be working fine and then suddenly the the uploads won't work anymore. The user then has to restart their device.
What could possibly cause the app to "lock up" to such an extent that only a restart of the device can solve the issue? It's completely random. The user could have no issues for weeks and then suddenly it will happen.