Skip to content

How to get RemoteID working? #28

@vitordelucca

Description

@vitordelucca

So I tried a few things, but no luck.
By RemoteID, I mean, Universal Dismiss. I didn't find any DOC also, just the MSDN article talking about it.
Any help would be appreciated.

Where I want to implement it:

foreach(Tuple<string, string, string> newNote in newNotifications)
{
// Make the visual
ToastVisual visual = new ToastVisual();
visual.TitleText = new ToastText() { Text = newNote.Item1 };
if(!String.IsNullOrWhiteSpace(newNote.Item2))
{
visual.BodyTextLine1 = new ToastText() { Text = newNote.Item2 };
}

                // Make the toast content
                ToastContent toastContent = new ToastContent();
                toastContent.Visual = visual;
                toastContent.Launch = c_messageInboxOpenArgument;
                toastContent.ActivationType = ToastActivationType.Foreground;
                toastContent.Duration = ToastDuration.Short;

                var toast = new ToastNotification(toastContent.GetXml());
                toast.Tag = newNote.Item3;



                // Only show if we should and this is the first message to show.
                toast.SuppressPopup = hasShownNote || updateSliently || AddToNotificationCenterSilently;
                ToastNotificationManager.CreateToastNotifier().Show(toast);

                // Mark that we have shown one.
                hasShownNote = true;
            }

full code to better understanding: https://github.com/vitorgrs/Reddunt/blob/rd_develop_rs1/BaconBackend/Managers/Background/BackgroundMessageUpdater.cs
PS: Not getting markdown insert code working. Sorry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions