Ravi Raman
Ravi Raman

Reputation: 1070

didReceiveLocalNotification method not called in app delegate when app is in background [iOS6]

I have added a local notification, it is getting triggered as well by displaying a banner on iOS6 and displaying alert in iOS5.

But in iOS6 the "didReceiveLocalNotification" method in app delegate is not getting called.

How can I know that a notification has occurred when the application is in the background?

Thanks.

Upvotes: 5

Views: 5166

Answers (1)

Leena
Leena

Reputation: 2676

It will never gets called in background. It will be called when your app is in foreground.

Check UIApplicationDelegate Protocol Reference link for more info

Upvotes: 8

Related Questions