I have built an app that stores dates entered by the user in an array. Now I want to perform some action on the background of my app. In the background, I want a check that compares the current date of the device with the data stored in an array. When a match is found, I want to open a dialog. Is it possible to do some tasks in the background when the app exits?
Please help me with an example, I have no idea regarding this topic.
If you just need to do a pop up at certain date you don’t need a service (that will just drain battery and be uncomfortable for users) but you can use AlarmManager
You can find many examples here AlarmManager Examples