To implement the push notifications of the mobile app, Ii use two services: Heroku and Firebase clouse messaging.
On Heroku, a worker keeps scanning Blurt block data and catch any app users' transactions.
If found, the Heroku app requests to send a push notification to Firebase Cloud Messaging.
Heroku app is awesome!
You can try your app on Heroku to do similar things.
There is a concepty of dyno in Heroku.
It is simply a container tof an app.
Then dyno hours are the wall-clock hours to operate. The dyno hours are not cpu times. So If you have 500 dyno hours in a month, it means you can run for 500 hours in a month.
If your app sleeps for some hours, the dyno hours are spent! So make it keep running!
Nice job... More insight