title: How to impelement notification system in android?
body: <p>I am building kind of an android chat app and I want to ask how I could build up a background thread that checks for incoming messages (from a rest api). My current solution is a <strong>JobService</strong> but I expect it to have a high battery consumption. Also the JobService has another problem: After closing the app it takes about 3 minutes to get started again (I want it all the time:)</p>
  <p>I prefer to not use firebase btw</p>
  <p>Thank you very much in advance.</p>