Remove desktop notifications

This commit is contained in:
problematicconsumer
2023-08-23 13:01:52 +03:30
parent dfe8bbcbbb
commit 8290ded8e3

View File

@@ -6,8 +6,8 @@ import 'package:hiddify/services/notification/stub_notification_service.dart';
abstract class NotificationService { abstract class NotificationService {
factory NotificationService() { factory NotificationService() {
// HACK temporarily return stub for linux as well // HACK temporarily return stub for linux and mac as well
if (Platform.isWindows || Platform.isLinux) { if (Platform.isWindows || Platform.isLinux || Platform.isMacOS) {
return StubNotificationService(); return StubNotificationService();
} }
return LocalNotificationService(FlutterLocalNotificationsPlugin()); return LocalNotificationService(FlutterLocalNotificationsPlugin());