mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Add notification authorization for badges on macOS
This commit is contained in:
parent
a1968110d5
commit
213a28eee3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue