Sending notification while application is closed

You must Login before you can answer or comment on any questions.

Hi

I know iOS4 and greater support background apps hence one may be able to send notifications. What if Application is not active even in background. Can I still send notifications?

I am working on a TODO app so have to send notification for due tasks.

please note I am not talking about APPLE's Push Notifications.

— asked 10 months ago by Adnan Ahmad
1 Comment
  • I'm interested in knowing the same.

    I am aware this can be done using background service, but don't know exactly where to look or how to start.

    — commented 10 months ago by Nikhil Nigade

1 Answer

Hi Adnan

The app does not need to be running in order to receive the push notifications, the certificates you create and attach to the app allows iOS to know which app to talk to when the push notification comes in.

So you can receive push notifications in these situations;

  • App running in forground
  • App running but not in foreground
  • App not running

Basically as long as the app user has agreed to receive push notifications, they will get them.

— answered 10 months ago by Malcolm Hollingsworth
answer permalink
12 Comments
  • Does the same apply when a local notification is set via the app?

    — commented 10 months ago by Nikhil Nigade

  • A local notification only works when the app is running as it is designed to work when the app is running in the background.

    Direct quote from help docs.

    "Local notifications are a way for an application that is not running in the foreground to let users know that it has information for them."

    — commented 10 months ago by Malcolm Hollingsworth

  • Ahaan. How would one tackle this locally, i.e. without using the APNS? How does the native Clock app set an alarm? :S

    — commented 10 months ago by Nikhil Nigade

  • Show 9 more comments

Your Answer

Think you can help? Login to answer this question!