【问题标题】:Count unreaded Number of missed call and message in Windows phone统计Windows phone中未读来电和消息的数量
【发布时间】:2018-06-18 14:04:11
【问题描述】:

如何在windows phone 8应用中显示未读消息和来电的标记?

我想在我打开应用程序时在我的应用程序图标中显示通知计数,届时它将像呼叫和消息应用程序一样删除。

我知道磁贴通知,但我不知道打开应用程序时如何移除徽章

注意:如何发送和接收带有徽章的 Toast 通知

【问题讨论】:

    标签: windows-phone-8 push-notification message phone-call


    【解决方案1】:

    我得到了解决方案...

    Handle tile pragmatically in windows phone.

    ShellTile tile = ShellTile.ActiveTiles.First();
                if (null != tile)
                {
                    // create a new data for tile
                    StandardTileData data = new StandardTileData();
                     tile foreground data
                    data.Title = "";
                    data.BackgroundImage = new Uri("/Assets/Tiles/IconicTileMediumLarge.png", UriKind.Relative);
                    data.Count = 0;
                     to make tile flip add data to background also
                    data.BackTitle = "Secret text here";
                    data.BackBackgroundImage = new Uri("/Images/Green.jpg", UriKind.Relative);
                    data.BackContent = "Back Content Text here...";
                     update tile
                    tile.Update(data);
    

    【讨论】:

    • 这不回答如何检索未接来电计数。
    猜你喜欢
    • 2022-07-14
    • 1970-01-01
    • 1970-01-01
    • 2018-08-28
    • 2015-08-06
    • 1970-01-01
    • 2014-12-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多