Notification Listener (powered by itoox-wrapper) and Itoo

You lack some basic knowledge in App Inventor, I assume you do not know the Clock component in the demonstration.

I would recommend you to explore the resources posted above.