void RemoveAllNotifications()
{
#region Android
#if UNITY_ANDROID
string raw = PlayerPrefs.GetString("NotificationIDs");
if (!string.IsNullOrEmpty(raw))
{
notification_ids = raw.Split(',').Select(x => x.Split(':')).ToDictionary(x => x[0], x => int.Parse(x[1]));
}
else
{
return;
}
foreach (var key in notification_ids.Values)
{
AndroidLocalNotification.CancelNotification(key);
}
notification_ids.Clear();
PlayerPrefs.DeleteKey("NotificationIDs");
#endif
#endregion
#region iOS
#if UNITY_IOS
NotificationServices.CancelAllLocalNotifications();
#endif
#endregion
}