title: How do you make your mobile AIR app run in the background all the time?
body: <p>I have created an alarm clock type application in AIR for mobile. For it to work I would think it needs to be running all the time. </p>
  
  <p>Basically, I need to check if it's a certain time (checking a stored value - the value could be in a local AIR SQLLite database, online, local storage (AIR cookie). When those conditions are met, for example timer complete, I need it to launch the application. </p>
  
  <p><em><strong>How would I keep my app running all the time or is there a better or alternative way to do what I want to do? Is there a headless mode?</em></strong> Pretend I am a beginner mobile developer and beginner AIR developer. </p>
  
  <p>Note: When I say launches the application, I mean the application launches in full screen, not a notification badge or message. Although, if the first option isn't possible is it possible to show a native alert type message that when clicked OK or whatever the native way is, would then open the application?</p>
  
  <p><strong>UPDATE</strong><br>
  It seems that in Android there is a way to run your application as a service. When notifications or messages come in from say, Google Cloud Messaging, then it runs the service class and any handlers listening handle the message. I think then you can launch the application if you need to. Note: I'm not sure if GCM is needed since it would be client side. An Intent might be what I'm trying to do. :P </p>
  
  <p>It's still sketchy but I'm adding more detail as I understand it. </p>
  
  <p>How this relates to an AIR app I'm not sure yet. I think possibly by native extension. </p>
  
  <p>GCM Getting Started - <a href="http://developer.android.com/guide/google/gcm/gs.html" rel="nofollow">http://developer.android.com/guide/google/gcm/gs.html</a><br>
  GCM Overview - <a href="https://support.google.com/googleplay/android-developer/support/bin/answer.py?hl=en&amp;answer=2663268" rel="nofollow">https://support.google.com/googleplay/android-developer/support/bin/answer.py?hl=en&amp;answer=2663268</a></p>