Show messages after killing the app
<p>I am currently working on android chatting app using <strong>io.socket</strong>.  When the app opened all the thing is working fine but when I kill the app I am not able show messages.</p>

<ol>
<li>GCM is a bad idea for messaging because I heard it misses some messages.</li>
<li>service means it will kill the battery.</li>
</ol>

<p>I want to show messages even if I kill the app(just like <strong>watsapp</strong>).</p>

<p>Do you have any suggestions, as to, how I can achieve this.</p>