Can a Corona App Run as a Service?

Having seen my success (so far) with our companies mobile app, another department has expressed a need for an app that notifies users about alerts - closings, late openings, etc.

I assume that the app would need to run in the background or as a service (or whatever the mobile term is) and then occassionally check a website for updates and then if the update met a criteria, it would need to send an alert or something.

Is that possible with corona?  Are there any examples or samples I could look at?

You would need to implement push notifications and have a server check for alerts and push them to the app.

That way you wouldn’t need the app to run in the background.

Can apps receive push notifications when they are not running?

But if the app isn’t running… how would it get the push notifications?

Basically, we need the user to be alerted in the case of a closing, delay, etc.  The user may not (actually probably won’t in 99% of the cases) have the app open.  So how would they get the push notification?

Remote push notifications will show up on the home screen, the lock screen and at the top of the screen when running other apps. It can even alert users with a sound when the phone is in the pocket.

When they get a push and open your app, you can get the app to update the status from a server.

I guess that is what you need?

Can you explain a little about how push notification works? Or refer me to some examples or documentation?  It sounds similar to what I need.

http://docs.coronalabs.com/guide/events/appNotification/index.html

Easiest thing is to use somekind of service eg. parse to handle the notifications, but you can also implement it on your own server.

You would need to implement push notifications and have a server check for alerts and push them to the app.

That way you wouldn’t need the app to run in the background.

Can apps receive push notifications when they are not running?

But if the app isn’t running… how would it get the push notifications?

Basically, we need the user to be alerted in the case of a closing, delay, etc.  The user may not (actually probably won’t in 99% of the cases) have the app open.  So how would they get the push notification?

Remote push notifications will show up on the home screen, the lock screen and at the top of the screen when running other apps. It can even alert users with a sound when the phone is in the pocket.

When they get a push and open your app, you can get the app to update the status from a server.

I guess that is what you need?

Can you explain a little about how push notification works? Or refer me to some examples or documentation?  It sounds similar to what I need.

http://docs.coronalabs.com/guide/events/appNotification/index.html

Easiest thing is to use somekind of service eg. parse to handle the notifications, but you can also implement it on your own server.