Hi KT,
Please don't get me wrong. I am confused and frustrated with this simple thing. I am not trying to argue with anyone - just trying to understand stuff...
Having said that.... here is what I have:
App in Background + YES on Notification:
----------------------------------------
application:didFinishLaunchingWithOptions: method is not called.
applicationWillEnterForeground: method is called.
<SamAppDelegate.m:97> -[SamAppDelegate applicationWillEnterForeground:], (applicationWillEnterForeground)
<SamAppDelegate.m:129> -[SamAppDelegate application:didReceiveLocalNotification:], didReceiveLocalNotification::::::: Scheduled Notifications are: (
"<UIConcreteLocalNotification: 0x5792a80>{fire date = 2011-04-03 07:00:00 +0000, time zone = (null), repeat interval = 64, next fire date = 2011-04-03 20:03:00 +0000}"
)
<SamAppDelegate.m:137> -[SamAppDelegate application:didReceiveLocalNotification:], (didReceiveLocalNotification) notification.applicationIconBadgeNumber=1
<SamAppDelegate.m:138> -[SamAppDelegate application:didReceiveLocalNotification:], (didReceiveLocalNotification) application.applicationIconBadgeNumber=1
<SamAppDelegate.m:108> -[SamAppDelegate applicationDidBecomeActive:], (applicationDidBecomeActive) applicationIconBadgeNumber=0
App in Foreground + YES on Notification:
----------------------------------------
applicationWillEnterForeground: method is called and then
didReceiveLocalNotification: method is called
<SamAppDelegate.m:129> -[SamAppDelegate application:didReceiveLocalNotification:], didReceiveLocalNotification::::::: Scheduled Notifications are: (
"<UIConcreteLocalNotification: 0x5781360>{fire date = 2011-04-03 07:00:00 +0000, time zone = (null), repeat interval = 64, next fire date = 2011-04-03 20:04:00 +0000}"
)
<SamAppDelegate.m:137> -[SamAppDelegate application:didReceiveLocalNotification:], (didReceiveLocalNotification) notification.applicationIconBadgeNumber=1
<SamAppDelegate.m:138> -[SamAppDelegate application:didReceiveLocalNotification:], (didReceiveLocalNotification) application.applicationIconBadgeNumber=0