B4A Library OkHttpUtils2 v3.02

Status
Not open for further replies.
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.
 
Last edited:
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
 
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?
 
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.

 
What is the minimum Android version supported by this new library? Still 5.0?
 
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.
Hi All,
When connecting to server, I need to use mutual authentication with client p12 and server pem files
After looking in OkHttp library. I did not find a way to add truststore to hc
Is is possible to have access to source code of OkHttp library ?
Thanks
 
Hi All,
When connecting to server, I need to use mutual authentication with client p12 and server pem files
After looking in OkHttp library. I did not find a way to add truststore to hc
Is is possible to have access to source code of OkHttp library ?
Thanks
You are posting in the wrong place. Always start a new thread for questions.
 
Status
Not open for further replies.
Back
Top