I have been making use of a service for several years now in my B4A app to upload information every 20 seconds to a server for a live scoring system . It has generally worked quite well, although there are times when the service hangs and the user is kicked out of the app (This is quite erratic and difficult to pinpoint why this happens). I had a whole bunch of DoEvents in the service which I have since removed. Upon coming back to testing though I seem to be encountering even more issues now.
The B4A app was recently ported to B4i and since there are no services in B4i, I am using HttpJob and a timer to do the uploads from the same code module that the user scores on. I initially thought that this was going to affect the UI scoring process when the timer runs to upload the live scoring (Which can process quite a bit) at the same time that the user enters a score, but it seems like this does not interrupt the user experience at all. My question is, will it be feasible for me to now adopt the same approach in B4A, or should I still stick with the original service that I created?
The B4A app was recently ported to B4i and since there are no services in B4i, I am using HttpJob and a timer to do the uploads from the same code module that the user scores on. I initially thought that this was going to affect the UI scoring process when the timer runs to upload the live scoring (Which can process quite a bit) at the same time that the user enters a score, but it seems like this does not interrupt the user experience at all. My question is, will it be feasible for me to now adopt the same approach in B4A, or should I still stick with the original service that I created?