Exemple #1
0
        public override void Test()
        {
            AN_NotificationManager.CancelAll();

            AN_NotificationManager.Cancel(1);
            AN_NotificationManager.Unschedule(1);


            AN_NotificationManager.OnNotificationReceived.AddListener((request) => {
                bool requestValid = ValidateRequest(request);
                if (requestValid)
                {
                    variant++;
                    TestNotificationWithVariantId(variant);
                }
                else
                {
                    string msg = "Received request does not match sent request   received: " +
                                 JsonUtility.ToJson(request) + " sent: " + JsonUtility.ToJson(m_sendedRequest);
                    SetResult(SA_TestResult.WithError(msg));
                }
            });

            TestNotificationWithVariantId(variant);
        }
        void CancelAllNotifications()
        {
            AN_NotificationManager.UnscheduleAll();
            AN_NotificationManager.CancelAll();
            _currentNotificationScheduleCue = 0;

            Debug.Log("Cancelling all scheduled local notifications");
        }
Exemple #3
0
 public void RemoveAllDeliveredNotifications()
 {
     AN_NotificationManager.CancelAll();
 }