title: A service to check Server Push Notifications
body: <p>I am developing mobile app that needs to send users push notifications. I planned to use Google Cloud Messaging service (Firebase) , but I assume that I will have many users , and afraid to reach the Firebase Spark plan (free one), and I know that it is really expensive.
  What was alternative plan for me , we to set the mobile app check my server database and reads notifications from it. into the server level this is done sucessfully.
  Question :</p>
  
  <ul>
  <li>Is my approach logic ? Am I missing something ?. Is this the best solution ?</li>
  <li>If so , I need to develop a Android service that will check  server for
  notification , eg every 1 hour. Which android service type to use ? I
  have ready that recent android version will kill my service. will
  Foreground service service ? , shall I use alarm?</li>
  </ul>
  
  <p>Thanks</p>