Private void AddTileNotification( string content, string tag, string image ) TileUpdater.EnableNotificationQueue( true ) ĪddTileNotification( "Content1", "tag1", "ms-appx:///Resources/Images/LT1.jpg" ) ĪddTileNotification( "Content2", "tag2", "ms-appx:///Resources/Images/LT2.jpg" ) ĪddTileNotification( "Content3", "tag3", "ms-appx:///Resources/Images/LT3.jpg" ) ĪddTileNotification( "Content4", "tag4", "ms-appx:///Resources/Images/LT4.jpg" ) TileUpdater = TileUpdateManager.CreateTileUpdaterForApplication() Public void Run( IBackgroundTaskInstance taskInstance )īackgroundTaskDeferral deferral = taskInstance.GetDeferral() Public sealed class TileUpdaterClass : IBackgroundTask I created a second application (BackgroundTasks) which has one file TileUpdater.cs displayed below: using
#LIVE TILES NOT WORKING REGISTRATION#
IBackgroundTaskRegistration registration = builder.Register() IBackgroundTrigger trigger = new TimeTrigger( 15, false ) īackgroundTaskBuilder builder = new BackgroundTaskBuilder() Result = BackgroundAccessStatus.AllowedWithAlwaysOnRealTimeConnectivity ) If ( result = BackgroundAccessStatus.AllowedMayUseActiveRealTimeConnectivity || Var result = await BackgroundExecutionManager.RequestAccessAsync() Var deferral = e.SuspendingOperation.GetDeferral()
![live tiles not working live tiles not working](https://i.ytimg.com/vi/dWgG6LGj5n0/maxresdefault.jpg)
Private void OnSuspending( object sender, SuspendingEventArgs e ) Throw new Exception( "Failed to create initial page" ) If ( !rootFrame.Navigate( typeof( MainPage ), args.Arguments ) )
![live tiles not working live tiles not working](https://www.technipages.com/wp-content/uploads/2020/04/remove-live-tiles-1-478x500.png)
If ( args.PreviousExecutionState = ApplicationExecutionState.Terminated )
![live tiles not working live tiles not working](https://bestwindows8apps.s3.amazonaws.com/images/2016/01/04/Screenshot.1152921504653371432.100000.jpg)
Protected override void OnLaunched( LaunchActivatedEventArgs args )įrame rootFrame = as Frame Private const string TASK_ENTRY = "BackgroundTasks.TileUpdaterClass" Private const string TASK_NAME = "BackgroundTileUpdater" I created a windows store test application (App1), to develop and test live tiles: