7b824b6f0c
- Layout und Kalender angepasst - Push status meldung angepasst für Android
20 lines
568 B
C#
20 lines
568 B
C#
using Android;
|
|
using Microsoft.Maui.ApplicationModel;
|
|
|
|
namespace cfs_tracker.Platforms.Android;
|
|
|
|
public sealed class NotificationPermission : Permissions.BasePlatformPermission
|
|
{
|
|
public override (string androidPermission, bool isRuntime)[] RequiredPermissions
|
|
{
|
|
get
|
|
{
|
|
var result = new List<(string androidPermission, bool isRuntime)>();
|
|
|
|
if (OperatingSystem.IsAndroidVersionAtLeast(33))
|
|
result.Add((Manifest.Permission.PostNotifications, true));
|
|
|
|
return result.ToArray();
|
|
}
|
|
}
|
|
} |