Пример #1
0
        public void ProcessNotification(IDictionary <string, object> notificationData)
        {
            var isValidNotiMessage = notificationData != null && notificationData.Any();

            if (isValidNotiMessage)
            {
                notificationData.ForEach(it =>
                {
                    NotificationService.AddNotificationStack(it.Key, it.Value.ToString());
                    NotificationService.PublishNotification(it.Key);
                });
            }
        }
Пример #2
0
        public void ProcessNotification(IDictionary <string, object> notificationData)
        {
            //var s = new StringBuilder();
            //notificationData.ForEach(it =>
            //{
            //    s.Append($"{it.Key},");
            //});
            //Device.BeginInvokeOnMainThread(()=> {
            //    App.Current.MainPage.DisplayAlert("Dev",$"{s}","ปิดสิครับ");
            //});
            var isValidNotiMessage = notificationData != null && notificationData.Any();

            if (isValidNotiMessage)
            {
                notificationData.ForEach(it =>
                {
                    NotificationService.AddNotificationStack(it.Key, it.Value);
                    NotificationService.PublishNotification(it.Key);
                });
            }
        }