i have an application that use the Local notification. now when the IOS5 is out and the notification alert is show - it goes to the notification center and now showing me the alert with my 2 buttons (show and cancel).
can someone please help me figure it, so i can make it pop up in the screen and not in the notification center (the line in the top of the screen).
this is my code:
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
localNotif.fireDate=[NSDate date];
localNotif.timeZone = [NSTimeZone defaultTimeZone];
localNotif.alertBody = @"Application alerted";
localNotif.alertAction = @"Show";
localNotif.soundName = UILocalNotificationDefaultSoundName;
localNotif.applicationIconBadgeNumber = 0;
[[UIApplication sharedApplication]presentLocalNotificationNow:localNotif];
[localNotif release];
Thanks, Amir.
Only the user itself can configure how notification alerts will be presented. Users can also disable notifications for an app or ban them from notification center. There is no developer API for that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With