I've been forever looking for something that can do this in WhatsApp because that's the only app that in my whitelist (android). How much battery does your app consume?
I'm a total miser when it comes to my phone battery and while I surely don't fully understand how android push messages work, I am just paranoid of letting more apps run in the background (like fb messenger, truecaller, etc) because they definitely reduce the battery life.