Reputation: 2512
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
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.
Upvotes: 3