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.
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.
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? Pretend I am a beginner mobile developer and beginner AIR developer.
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?
UPDATE
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
It's still sketchy but I'm adding more detail as I understand it.
How this relates to an AIR app I'm not sure yet. I think possibly by native extension.
GCM Getting Started - http://developer.android.com/guide/google/gcm/gs.html
GCM Overview - https://support.google.com/googleplay/android-developer/support/bin/answer.py?hl=en&answer=2663268