Add notification authorization for badges on macOS
This commit is contained in:
parent
a1968110d5
commit
213a28eee3
@ -47,7 +47,7 @@ NotificationsManager::objCxxPostNotification(const QString &room_name,
|
||||
const QString &informativeText,
|
||||
const QString &bodyImagePath)
|
||||
{
|
||||
UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound;
|
||||
UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound + UNAuthorizationOptionBadge;
|
||||
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
|
||||
|
||||
[center requestAuthorizationWithOptions:options
|
||||
|
Loading…
Reference in New Issue
Block a user