Uwp app got crashed while showing badge with an error - The Notification Platform is Unavailable

0

My application got crashed with an error message which i am not able to understand -

6268|2021-01-26T18:37:26.2933078+00:00|INFO|2|App|1/26/2021 2:37:26 PM = App_UnhandledException() EX = The notification platform is unavailable.

6269|2021-01-26T18:37:27.8193806+00:00|INFO|2|App|1/26/2021 2:37:27 PM = App_UnhandledException() StackTrace = at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x60 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x36 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x16 at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0x9 at MangoAppsUWP.ViewModels.LandingViewModel.d_268.MoveNext() + 0xfb --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x1c at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b_7_0(Object) + 0x19 at System.Action`1.Invoke(T) + 0x1e at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore() + 0x2b

6271|2021-01-26T18:37:28.0783858+00:00|FATAL|2|Application|The application crashed: The notification platform is unavailable.

6272|2021-01-26T18:37:28.0793909+00:00|FATAL|2|Application|The application crashed: The notification platform is unavailable.

6273|2021-01-26T18:37:29.6211570+00:00|INFO|2|App|1/26/2021 2:37:29 PM = App_UnhandledException() EX = The process cannot access the file because it is being used by another process.

The file is in use. Please close the file before continuing. Not enough memory resources are available to process this command. (Exception from HRESULT: 0x80070008)

There were few more error which might be related to this. -

  1. WebSocket_MessageReceived Ex = Not enough memory resources are available to process this command. (Exception from HRESULT: 0x80070008)

  2. Insufficient quota to complete the requested service. (Exception from HRESULT: 0x800705AD)

It crashed around this code

BadgeUpdateManager.CreateBadgeUpdaterForApplication().Clear();
            if (ObjFactory.Instance.CreateRuntimeData().BadgeMessageCount > 0)
            {

                XmlDocument badgeXml = BadgeUpdateManager.GetTemplateContent(BadgeTemplateType.BadgeNumber);
                XmlElement badgeElement = badgeXml.SelectSingleNode("/badge") as XmlElement;
                badgeElement.SetAttribute("value", ObjFactory.Instance.CreateRuntimeData().BadgeMessageCount.ToString());
                BadgeNotification badge = new BadgeNotification(badgeXml);
                BadgeUpdater badgeUpdater = BadgeUpdateManager.CreateBadgeUpdaterForApplication();
                badgeUpdater.Update(badge);
                UnreadAwayTextMessage();
            }
uwp
badge
asked on Stack Overflow Jan 28, 2021 by Laxmi • edited Feb 2, 2021 by Laxmi

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0