Reputation: 2187
I have an app where a user can perform a backup (offline) and restore (offline) on a button click. However, i don't know which background service is appropriate to use. Can someone advise me whether to use WorkerManager or Service in this case?
Upvotes: 1
Views: 203
Reputation: 4798
I recommend you to use ForegroundService
as of the goal of using these services are Long Running Processes that Users should be informed and interact with it .
Consider when you try to backup when you Use ForegroundService
then you can show to user
So I recommend you to use this approach .
Upvotes: 3