How to perform some action on background when the app exit
<p>I have build an app which store dates enter by the user in the an array. Now i want to perform some action on background of my app. In the background i want a check, which check the current date of the device  with the date stored in an array. When the match found i want to pop an dialog. Is it possible to do some task in background when the app exit.</p>

<p>Please help me with an example, I have no idea regarding this topic</p>
