I have a cricket scoring app developed in B4A and B4i that is used extensively in South Africa as well other countries worldwide. One of the biggest features of the app is that it has a live-scoring option, whereby the app updates a MySQL DB on our server which in turns supplies match info to a website for the community to follow. You can score offline, and then at any point you can enable live scoring which will upload the latest scores in the game every 20 seconds.
One of the biggest issues I'm having though is that sometimes when live-scoring is enabled, the app will hang and then close the app. This has been happening for many years now, and everything points to the mobile connection of the device dropping for some reason which causes issues with the data upload. Often to resolve the issue, we tell the scorers to turn off mobile data on the device and use a WiFi hot-spot from another device, which generally does the trick. Some other things to note are:
1) There are no Do Events in the app so that's not the issue
2) We've broken the uploading of data into small chunks of data, and the app will wait for a success message from the previous upload before it attempts to upload the next batch
3) It's completely erratic. A user can score an entire game (7.5 hours of scoring) one weekend without any issue, then the following week the same user with the same device, using the same version of the app could encounter the issues mentioned above
What can I do to try ensure that if it is the mobile network that drops that causes the issue, that the app won't hang and close on the user? Or are we effectively at the mercy of the internet connection in these scenarios?
One of the biggest issues I'm having though is that sometimes when live-scoring is enabled, the app will hang and then close the app. This has been happening for many years now, and everything points to the mobile connection of the device dropping for some reason which causes issues with the data upload. Often to resolve the issue, we tell the scorers to turn off mobile data on the device and use a WiFi hot-spot from another device, which generally does the trick. Some other things to note are:
1) There are no Do Events in the app so that's not the issue
2) We've broken the uploading of data into small chunks of data, and the app will wait for a success message from the previous upload before it attempts to upload the next batch
3) It's completely erratic. A user can score an entire game (7.5 hours of scoring) one weekend without any issue, then the following week the same user with the same device, using the same version of the app could encounter the issues mentioned above
What can I do to try ensure that if it is the mobile network that drops that causes the issue, that the app won't hang and close on the user? Or are we effectively at the mercy of the internet connection in these scenarios?