I have checked your code and did not find the error you reported. The JobDone event fires every time.
My server (where the apk's are stored) is configured a little differently. Instead of looking for a text file, I fire a php script that finds the most recent apk (based on time stamp) and returns the file name of that apk (I keep older versions on the site just in case..., they can be downloaded manually if necessary) So it does work very much the same otherwise.
Once these changes were made, pointing your code to my server works fine.
I use a Moto-X (2014) with Android 5.1
There were a number of small buglets, like calling
instead of
but that did not prevent the code from running.
I had to make a number of adjustments in order to see what was going on. The biggest: I actually download the apk for another app (I changed the app name pointed to) so that I can keep running the code without actually updating the app I am debugging.
So I am not sure what the problem is. You say the code used to run. Can you load an older version and see if it still works?
What else has changed in the mean time, the phone or tablet, an OS upgrade, a different server?