private void PrintNotification(ISN_UNNotification notification) { Debug.Log("notification.Date: " + notification.Date.ToString()); Debug.Log("notification.Request.Identifier: " + notification.Request.Identifier); Debug.Log("notification.Request.Content.Title: " + notification.Request.Content.Title); Debug.Log("notification.Request.Content.Subtitle: " + notification.Request.Content.Subtitle); Debug.Log("notification.Request.Content.Body: " + notification.Request.Content.Body); Debug.Log("notification.Request.Content.Sound: " + notification.Request.Content.Sound); Debug.Log("notification.Request.Trigger.Type: " + notification.Request.Trigger.Type); }
void WillPresentNotificationEvent(string json) { ISN_UNNotification notification = JsonUtility.FromJson <ISN_UNNotification>(json); m_willPresentNotification.Invoke(notification); }