B4A Library OkHttpUtils2 v3.02

All previous versions of OkHttpUtils2 relied on a service. As it is no longer possible to start services when the app starts in the background, this configuration is problematic and it will fail in such cases (https://www.b4x.com/android/forum/threads/receivers-and-httpjob.146181).
In the new version HttpUtils2Service is actually a receiver. It should be transparent for developers.

Note that this is an internal library.
 

Attachments

  • OkHttpUtils2.b4xlib
    4.6 KB · Views: 937
Last edited:

GraemeW

Member
Licensed User
Thank you - perfect. Had just converted my app services to receivers and was getting a lot of crashes for android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service (package name)/.httputils2service
 

vecino

Well-Known Member
Licensed User
Longtime User
Sorry for butting in, so as not to create a new thread with my question, what is this "receiver"?
Any thread where it is explained?
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
Sorry for butting in, so as not to create a new thread with my question, what is this "receiver"?
Any thread where it is explained?
Receivers has been trending since b4a v12.2. beta.

 

yo3ggx

Active Member
Licensed User
Longtime User
What is the minimum Android version supported by this new library? Still 5.0?
 
Top