I have no idea on how to create my app to become real-time,
what I wanted to do is it alerts the user of something, and when the app is closed it will alert you via notification.
I've done on how to alert the user while the app is on, but i don't know if the app is off/closed.