diff --git a/Sources/App/Classes/Library/TLONotificationController.m b/Sources/App/Classes/Library/TLONotificationController.m index a5bb87cfa..ffc463fce 100755 --- a/Sources/App/Classes/Library/TLONotificationController.m +++ b/Sources/App/Classes/Library/TLONotificationController.m @@ -94,6 +94,15 @@ NSString * const TXNotificationActionIdentifierLicenseManagerMoreInfo = @"TXNoti [RZNotificationCenter() addObserver:self selector:@selector(mainWindowSelectionChanged:) name:TVCMainWindowSelectionChangedNotification object:nil]; + [RZUserNotificationCenter() requestAuthorizationWithOptions:UNAuthorizationOptionAlert + completionHandler:^(BOOL granted, NSError * _Nullable error) { + if (error) { + LogToConsoleError("Notifications failed to authorize: %{public}@", error.localizedDescription); + } + + LogToConsoleInfo("Notification permission: %{public}@", StringFromBOOL(granted)); + }]; + [self registerCategories]; }