Add notification authorization for badges on macOS

This commit is contained in:
Joseph Donofry 2022-08-04 17:57:43 -04:00
parent a1968110d5
commit 213a28eee3
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ NotificationsManager::objCxxPostNotification(const QString &room_name,
const QString &informativeText, const QString &informativeText,
const QString &bodyImagePath) const QString &bodyImagePath)
{ {
UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound; UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound + UNAuthorizationOptionBadge;
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
[center requestAuthorizationWithOptions:options [center requestAuthorizationWithOptions:options