MobileGeek
MobileGeek

Reputation: 2512

Local Notifications not displaying in iOS 6

I am getting local notifications on time but they are just creating sound. I have disabled the "Do Not Disturb" option and set the Notification alert style as "Alert".

Is there any solution to this problem?

Upvotes: 1

Views: 2010

Answers (1)

Simon Germain
Simon Germain

Reputation: 6844

When the application is not active (in foreground), the OS will display an alert, play a sound and/or create a badge. When the application is active, there are no such thing happening. Instead, it'll call the application:didReceiveLocalNotification: method on your app delegate, in which you will have to create your own alert, play your own sound, etc.

Reference: http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html

Upvotes: 3

Related Questions