Windows 8 アプリのタイルにバッジを表示したい.次のコードを試してみましたが、タイルにバッジが表示されません.エラーは表示されません. 問題が何であるかがわかりません。これで2時間立ち往生しています。
var notifications = Windows.UI.Notifications;
var badgeType = notifications.BadgeTemplateType.badgeNumber;
var badgeXml = notifications.BadgeUpdateManager.getTemplateContent(badgeType);
var badgeAttributes = badgeXml.getElementsByTagName("badge");
badgeAttributes[0].setAttribute("value", "7");
var badgeNotification = new notifications.BadgeNotification(badgeXml);
notifications.BadgeUpdateManager.createBadgeUpdaterForApplication().update(badgeNotification);
アップデート
こんにちは、上記のコードは windows8 デスクトップで動作していますが、シミュレーターで実行するとバッジ テキストが表示されません。