diff --git a/lib/main.dart b/lib/main.dart index 9cc841e2..eff687ba 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:get/get.dart'; +import 'package:permission_handler/permission_handler.dart'; import 'package:taskwarrior/app/utils/theme/app_settings.dart'; import 'app/routes/app_pages.dart'; @@ -8,6 +9,11 @@ import 'app/routes/app_pages.dart'; void main() async { WidgetsFlutterBinding.ensureInitialized(); await AppSettings.init(); + await Permission.notification.isDenied.then((value) { + if (value) { + Permission.notification.request(); + } + }); runApp( GetMaterialApp( title: "Application",