Home > Enterprise >  The best way to execute task in background
The best way to execute task in background

Time:03-07

I would like to know the best way to execute a background task every hour. It consists of synchronizing an ftp directory and displaying on a notification if there have been changes. I thought it was done with services but I heard about JobScheduler or WorkManager. Furthermore the application will run on a Samsung device with oneui which can sometimes kill the process? Is it supported with certain solutions?

Thanks in advance

CodePudding user response:

If you want to trigger particular time means exact time. Then go with Alarm Manager.and if timing is not on your priority then Go with Work Manager

Alarm manager on Samsung oneUI is worked perfectly

  • Related