Badge icon indicating copy to clipboard operation
Badge copied to clipboard

[UWP] The notification has already been posted.

Open duzenko opened this issue 6 years ago • 1 comments

When I run this code in a UWP project I get an exception. Please advise.

                Device.BeginInvokeOnMainThread( () => {
                    try {
                        if( number == 0 )
                            CrossBadge.Current.ClearBadge();
                        else
                            CrossBadge.Current.SetBadge( number );
                    } catch( Exception ex ) {
                        ex.ToString();
                    }
                } );
{System.Runtime.InteropServices.COMException (0x803E0106): The notification has already been posted.

   at Windows.UI.Notifications.BadgeUpdater.Update(BadgeNotification notification)
   at Plugin.Badge.BadgeImplementation.SetBadge(Int32 badgeNumber)
   at Shortbench.Views.DrawerMenu.<>c__DisplayClass8_0.<CheckForUnreadNotifications>b__3()}

duzenko avatar May 16 '18 16:05 duzenko