Skip to main content
May 19, 2011
Question

How to create PUSH notification while app is running in background?

  • May 19, 2011
  • 1 reply
  • 975 views

Hello!

It is possible to create a typicall push notification message while an app build within AIR 2.6 on iOS device is running in the background?

e.g. to create an alarm or a reminder.

If this is possible, how do you create something like this?

kind regards!

This topic has been closed for replies.

1 reply

Participating Frequently
April 30, 2012

I used this tutorial http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/notification.html

And I could dispatch notifications while the app is running.

But for some reason, interacting with the notification is not trigering the NotificationManager event listener.

Also, for testing purposes I used a Timer to keep sending notifications even after leaving the app. It works for a while but for no aparent reason it stops after some minutes.

The Android System is probably killing the application from background to stop state.

So the main problem is how push or keep the app in the background in a reliable way to be able to push/pull info and then notify the user.

Notification has no use when the app is runing...

Let me know if you find anything about it.  I'll keep searching for a solution too.