some feedback.
1. Add the SERVER conditional symbol to the build configuration (Ctrl + B).
2. Add a reference to jBuilderUtils. Library:
https://www.b4x.com/android/forum/attachments/jbuilderutils-zip.41578/
3. The library code calls Main.srvr.CreateThreadSafeMap. If you named your server object differently then you need to add such public global variable and assign it the server object.
Result - Pass. Debug Mode, B4J BackgroundWorker has a timer. Calls a API in a Standard Class.
Result - Fail. Release Mode, B4J BackgroundWorker has a timer. Calls a API in a Standard Class.
Result - Pass. Release Mode, B4J BackgroundWorker has a timer. Calls a API on Main Module, using CallDelayedSub2.
Result - Pass. Release Mode, Main Module has a timer. Calls a API in a Standard Class..
Fail is when i get a 401 unathorized response from the API
Am i doing anything wrong?
Is it safe to run a timer in the Main Class and perform certain operations every xx minutes