Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSUserNotificationAlertStyle plist key not working

I am working on sample user notification on 10.8 however the key NSUserNotificationAlertStyle when i set it to alerts not working, my application still shows it as banner, the only way to control it through the system preference but what if i want to set the default behaviour to be alert style??

like image 680
sandy Surname or Initialc Avatar asked Apr 16 '13 05:04

sandy Surname or Initialc


1 Answers

It works, but you must

  1. Code sign your application;
  2. Set alert string value for NSUserNotificationAlertStyle key in your app info.plist file;
  3. Make sure they are not turned off in Notifications tab of System Preferences.

If you already experiment with notifications it will be better to perform it from scratch. Here how you can remove app from User Notification Center.

like image 118
Lexandr Avatar answered Oct 07 '22 10:10

Lexandr