UWP分片刷新超时

UWP分片刷新超时,uwp,live-tile,Uwp,Live Tile,我创建了一个非常简单的UWP应用程序 public MainPage() { this.InitializeComponent(); // In a real app, these would be initialized with actual data string from = "Jennifer Parker"; string subject = "Photos from our trip"; st

我创建了一个非常简单的UWP应用程序

 public MainPage()
    {
        this.InitializeComponent();
        // In a real app, these would be initialized with actual data
        string from = "Jennifer Parker";
        string subject = "Photos from our trip";
        string body = "Check out these awesome photos I took while in New Zealand!";


        // Construct the tile content
        TileContent content = new TileContent()
        {

            Visual = new TileVisual()
            {

                TileMedium = new TileBinding()
                {
                    Content = new TileBindingContentPhotos()
                    {
                        Images =
            {
                new TileBasicImage()
                {
                    Source = "Assets/images-15.jpg"
                },

                new TileBasicImage()
                {
                    Source = "Assets/images-7.jpg"
                },

                new TileBasicImage()
                {
                    Source = "Assets/trolltunga.jpg",

                }

                // TODO: Can have 12 images total
            }
                    }
                }

                // TODO: Add other tile sizes
            }
        };
        var notification = new TileNotification(content.GetXml());
        TileUpdateManager.CreateTileUpdaterForApplication().Update(notification);
    }

所以,它只是为了检查瓷砖将更新多长时间。因此,我了解到此互动程序将一直更新,但互动程序在1-2天后停止更新(无法正确检查)。所以我的问题是-有人知道瓷砖的生命周期更新吗?我找到了有关后台任务的信息,但此互动程序不使用customs background task向互动程序发送通知,使用
TileUpdateManager为主互动程序创建互动程序更新程序,并通过调用“Update”发送通知。无论是否可见,应用程序的主磁贴始终存在,因此即使未固定,也可以向其发送通知。如果用户稍后锁定主磁贴,则会显示您发送的通知。在您修改互动程序之前,互动程序的内容不会更改

我找到了有关背景任务的信息,但此互动程序不使用海关背景任务

tile使用的后台任务不是特殊任务。用于每隔15分钟更新磁贴内容的正常后台任务将从表单中删除。使用后台任务的目的是确保在应用程序挂起时及时更新互动程序的内容。您还可以使用从web服务器动态更新磁贴

所以我读到这个磁贴将一直更新,但磁贴在1-2天后停止更新

,本地磁贴和徽章通知不会过期,而推送、定期和计划通知在三天后过期。由于磁贴内容的持续时间不应超过必要的时间,因此最好设置对应用程序有意义的过期时间,特别是在本地磁贴和徽章通知上