Adding final project to dev branch

This commit is contained in:
2025-12-19 18:53:21 -06:00
commit fd2ab3e14c
62 changed files with 4730 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using Plugin.LocalNotification;
namespace WguApp.Services;
public static class PermissionsService
{
public static async Task<bool> CheckNotificationPermissions()
{
if (await LocalNotificationCenter.Current.AreNotificationsEnabled()) return true;
try
{
return await LocalNotificationCenter.Current.RequestNotificationPermission();
}
catch (Exception e)
{
LoggerService.LogToFile(e.Message);
return false;
}
}
}