I have to create an application that activates the proximity alert at certain times of the day (this period of time can be several hours long). The proximity alert must be started automatically, even if the application has never been opened.
My question is: can I use the WorkManager in this situation? or should I fall back on the foreground service?