local notification in background

Hi guys,when I execute an app, I want it to start a listener to trigger local notification. And leave time by pressing the home button app, do not stop listening. However, contrary to expectations, the listener is stopped, who can help me?? :frowning:

I’m not sure if I understand what you mean, but it’s not possible to have a listener that will *continuously* respond to events after the app has been suspended to the background.

You can only use system.scheduleNotification() to schedule a notification which will call a listener at a specified time.

Thank you ingemar for the reply,so I can’t do the same as the calendar? When the app is inactive will trigger a notification within a certain time?

Calendar events are fine, or any other events that should be sent at a specific time. These events will fire even when the app is not active.

There is a guide that you can check out here:

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

I’m not sure if I understand what you mean, but it’s not possible to have a listener that will *continuously* respond to events after the app has been suspended to the background.

You can only use system.scheduleNotification() to schedule a notification which will call a listener at a specified time.

Thank you ingemar for the reply,so I can’t do the same as the calendar? When the app is inactive will trigger a notification within a certain time?

Calendar events are fine, or any other events that should be sent at a specific time. These events will fire even when the app is not active.

There is a guide that you can check out here:

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