The problem occurs on
instructions.
After installing this update to OKHttpUtils2 I am now getting log messages saying "sending message to waiting queue of uninitialized activity (submitjob)" and then waiting for ever on the line
This is true both in a B4xPages activity and in a widget-related service.
Is this something to do with this having become a Receiver?
I've done some more digging, and unzipped the HttpJob and HttpUtils2Service modules from the library and included them in my project. This means I can log traces.
It seems that, first time through, the following line in the HttpJob.Download sub is not working properly
Logs suggest that the "uninitialized activity (sumbitjob)" event is happening BEFORE the Service_Create and Broadcast_Receive subs in HttpUtils2Service module have run.
Note that this only seems to be the case first-time through. If the app retries the download it works ok.
Could it be a problem with CallSubDelayed(2) in a Broadcast Receiver situation?
I've got round it very hamfistedly by altering the Broadcast_Receive sub in HttpUtils2Service to retry the SubmitJob request if FirstTime is true but this is horrible and may not work in other contexts.
I'm running latest B4A on Android 9 (Samsung A8)