How to set a timer of 2 hours and even if the application is turned off, it continues counting

what about doing a search in the community?

to send a notification at a specific time also when the app is closed I can offer my alarmmanager extension…

Taifun