LucaMs Expert Licensed User Longtime User Feb 7, 2023 #1 I was looking on stackoverflow for some info on how to keep multiple services running, wanting to try and help in this thread (I usually look on b4x.com first; this time...not sure why I looked there first), I came across a piece of source code in which that WorkManager is used. From what I've read, it seems to me very useful, important and not used in b4x (that is, there don't seem to be any libraries that use it) Erel has always written that you can never be sure that the OS doesn't kill the app (more precisely the process) and I think that's absolutely true; but this WorkManager could be THE SOLUTION, or not? [I have to admit I haven't searched for WorkManager on b4x yet, which I am about to do now] P.S. https://developer.android.com/topic...WZi3GxEhoCqU0QAvD_BwE&gclsrc=aw.ds&authuser=1 Last edited: Feb 7, 2023
I was looking on stackoverflow for some info on how to keep multiple services running, wanting to try and help in this thread (I usually look on b4x.com first; this time...not sure why I looked there first), I came across a piece of source code in which that WorkManager is used. From what I've read, it seems to me very useful, important and not used in b4x (that is, there don't seem to be any libraries that use it) Erel has always written that you can never be sure that the OS doesn't kill the app (more precisely the process) and I think that's absolutely true; but this WorkManager could be THE SOLUTION, or not? [I have to admit I haven't searched for WorkManager on b4x yet, which I am about to do now] P.S. https://developer.android.com/topic...WZi3GxEhoCqU0QAvD_BwE&gclsrc=aw.ds&authuser=1
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2023 #2 WorkManager will not prevent the app from being killed. It is not so different than using a receiver with StartReceiverAt. Upvote 0
WorkManager will not prevent the app from being killed. It is not so different than using a receiver with StartReceiverAt.
LucaMs Expert Licensed User Longtime User Feb 7, 2023 #3 Erel said: WorkManager will not prevent the app from being killed Click to expand... No, but... (from stackoverflow) Worker will still "running" event if the app is killed. Upvote 1
Erel said: WorkManager will not prevent the app from being killed Click to expand... No, but... (from stackoverflow) Worker will still "running" event if the app is killed.
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2023 #4 In the same way that the scheduled receiver will run after the process is killed. Upvote 0