tags:

views:

36

answers:

1

Hi, the method didFinishLaunchingWithOptions is not being called when i launch via push notification on a multitasking OS4.1 3GS device. I just get AppdidEnterForeground called. Is this the way it is on a multitasking device. The docs don't say this. If it is not called how do i access the launchOptions dict.

Thanks

A: 
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

is called if your app receives a notification while running, in the background or in the foreground.

If you read the applications applicationState-property you could figure out if your app was active while receiving this notification.

fluchtpunkt