// NOTE: Both the ToastsPage and the BackgroundTaskPage can register/unregister the same background task. private async void registerTask_Click(object sender, RoutedEventArgs e) { bool result = await BackgroundTaskHelper.RegisterTimeZoneChangeBackgroundTask( LocalizableStrings.BACKGROUND_TASK_TIMEZONE_NAME, LocalizableStrings.BACKGROUND_TASK_TIMEZONE_ENTRYPOINT); if (result) { status.Log(LocalizableStrings.BACKGROUND_TASK_REGISTRATION_SUCCESS); } }