private bool TryCleaningToastNotificationHistory()
{
try
{
var notificationManager = GetSystemService(NotificationService) as NotificationManager;
if (notificationManager != null)
{
notificationManager.CancelAll();
return true;
}
}
catch (Exception e)
{
Debug.WriteLine(e);
}
return false;
}
}