Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 689
Ravi Raman Avatar asked Dec 03 '12 06:12

Ravi Raman


1 Answers

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

like image 81
Leena Avatar answered Sep 23 '22 11:09

Leena