private static async void BackgroundProcessRemover()
{
const string taskName = "ActionCenterToastMaker";
var backgroundAccessStatus = await BackgroundExecutionManager.RequestAccessAsync();
if (backgroundAccessStatus != BackgroundAccessStatus.AllowedMayUseActiveRealTimeConnectivity &&
backgroundAccessStatus != BackgroundAccessStatus.AllowedWithAlwaysOnRealTimeConnectivity) return;
foreach (var task in BackgroundTaskRegistration.AllTasks.Where(task => task.Value.Name == taskName))
{
task.Value.Unregister(true);
}
}