Skip to content

Let's add a "badge number example" to this code? #1

@otopba

Description

@otopba

Hi! Very useful code. You don't know how to put the badge number on the application icon? I think this would be a very useful addition to your code.
I tried to add this code to yours. But nothing came of it:
`

        Console.WriteLine("Set badge");
        var template = "<badge value=\"" + number + "\" />";
        var templateXml = new XmlDocument();
        templateXml.LoadXml(template);
        var badge = new BadgeNotification(templateXml);
        BadgeUpdateManager.CreateBadgeUpdaterForApplication(appId).Update(badge);

`
I really hope for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions