Does iOS have something like Android's AlarmManager?

Viewed 12761

What is iOS' alternative to Android AlarmManager class?

So far the closest thing that I found is NSTimer. But that works only when your application is up, once it goes to the background it won't work, and I need to run some function in the background and from my business logic to decide if I want to do something or not. For example if some condition is satisfied to display local notification.

The only workaround I found is to use remote pushing notifications (silent notifications) just to wake up app, and from there you can implement your business logic.

IMPORTANT NOTE

From what I have found on few places is that people are complaining about using silent notifications to do this because your application might be rejected on app store.

2 Answers
Related