I have an application that picks up some data (numbers) from the iOS and increments the app counter [data from iOS are some values that are based on users interaction with the device]. I've kept a threshold of 100 in my app. Here when the user crosses the 100 limit, I alert the user with an AlertView.
The problem now is that if the app is closed, and if the iOS data crosses the 100 limit, I want the user to be notified.
I know the uses of NSLocalNotifications. But I want to know if I could schedule notifications when I app is closed?
- I do not wish to use APNS or any server based solution.
- I need a solution for iOS 4 and above
preguntado el 08 de noviembre de 11 a las 10:11
If app close, NSLocalNotifications work, but your processor can be applied only after the program will start. If not mistaken, you can catch it through the launchOptions in the applicationDelegate method (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions