Run APP like WhatsApp

(taljacobson) yes I need to do someting like push notifications, but I have my own back-end to send this notification. I am trying to do with socket but the problem is when the APP closes.