push notification...

Hi everyone,

I am working on push notification for my app but the push notification only get fetched from server when app is open. Sometimes notification doesn’t comes at all and after a while all the queued comes together on console. How do I run push notification even though the app isn’t open? Also how to show push notification on notification bar on Android/iOS?