So I was creating a Tasks Application, where user can add and delete tasks, I have given this option to remind the task after 4 hour through a notification. The notification has a ‘Done’ action which should delete the task from the RoomDB, but I can’t figure out how to do so.
I am very new to Android dev, don’t know much.
I tried using a thread inside Broadcast Receiver which runs the Dao delete task function but it doesn’t work while the app is closed (not even present in recent apps)
VivaciousOne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.