title: Firebase JobScheduling in the cloud | How to use the Server SDK for JobScheduling
body: <p>I've seen lots of APIs for Job Scheduling, if I may mention:</p>
  
  <ul>
  <li><code>AlarmManager</code></li>
  <li><code>JobScheduler</code></li>
  <li><code>JobSchedulerCompat</code></li>
  <li><code>GCMNetworkManager</code></li>
  </ul>
  
  <p>And what I'm trying to do is, a user sets a date along with a campaign, he saved it in Firebase, and when that date comes, that created object gets deleted. I've seen something similar with Parse, but as you might know, it's shutting down and I'm storing my data in Firebase anyways.</p>
  
  <p>However, <strong><code>AlarmManager</code></strong> surely doesn't do the task in the <strong>cloud</strong> (<em>The service doesn't run on the device, but in the cloud.</em>)</p>
  
  <p><strong><code>JobScheduler</code></strong> is not available for pre-lollipop.</p>
  
  <p><strong><code>JobSchedulerCompat</code></strong> is deprecated "<em>There's no guarantee this won't explode your device or drain your battery</em>" and I don't think it runs in the cloud anyways.</p>
  
  <p>And I'm not sure about <code>GCMNetworkManager</code>. Does it run in the cloud or is it on the device? <strong>Tough example:</strong> If every single user who uses my app has his device shut down, will the task still be completed? </p>
  
  <hr>
  
  <p><strong>Long question short:</strong> Does <code>GCMNetworkManager</code> run in the cloud? If not, what alternatives do I have?</p>
  
  <hr>
  
  <p><strong>Edit:</strong> @qbix's answer gave me a hint, but I still cannot understand anything from that link. If anyone answers my question along with an example, he will be awarded the bounty. This includes @qbix.</p>