private bool TryCleaningToastNotificationHistory()
{
try
{
//MK Clearing push notification from notification center http://stackoverflow.com/a/9225972/510627
UIApplication.SharedApplication.ApplicationIconBadgeNumber = 1;
UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
UIApplication.SharedApplication.CancelAllLocalNotifications();
return true;
}
catch (Exception e)
{
Debug.WriteLine(e);
}
return false;
}
}