Timo Partl

Results 202 comments of Timo Partl

@castorix this looks like it's a documentation for UWP. It lists "A Windows 10 UWP app project" under Prerequisites and requires a UWP NuGet: "Microsoft.Toolkit.Uwp.Notifications". There's also [CommunityToolkit.WinUI.Notifications](https://www.nuget.org/packages/CommunityToolkit.WinUI.Notifications) but it's...

Yes, `LaunchAndActivationPermissions` is set exactly like that. I think the background task is working as intended for most users, and if `LaunchAndActivationPermissions` wasn't set properly, it wouldn't work for any?

@godlytalias please let me know if you need any additional information from me. Is it possible that crash happens when the WinAppSDK Runtime hasn't been properly installed alongside WorkingHours? Or...

@godlytalias Yes, that is the GUID for my background task. It's certainly in the app, you can test it yourself :) As I said, from what I can tell the...

@godlytalias I'd totally prefer if you could find the underlying issue, but from a developer perspective handling or not handling the error does make a difference. At the moment, my...

I made sure to call `CoRegisterClassObject` before anything else in my app, as first instruction in the `Program.Main()` method (I'm using a [single-instanced app](https://learn.microsoft.com/en-us/windows/apps/windows-app-sdk/migrate-to-windows-app-sdk/guides/applifecycle#single-instancing-in-main-or-wwinmain), if that's of relevance here) -...

> Also about the point 'seeing a crash', these crashes in the spikes are from backgroundtaskhost.exe, which would not crash the 'main application process'. When I'm referring to a "crash"...

Thanks for the quick response. It's a bit irritating that there's a documented need for the class to be `public`, but it appears to be working even when the visibility...

@godlytalias After uploading a new version where I also call `CoRevokeClassObject` (not to my surprise) nothing has changed. The crash rate persisted and I now see almost 17.000 crashes per...

@BernhardMarconato thanks for the suggestion. Yes I am using NativeAOT - I will have a look at the code you referenced. I says it's about out-of-process background task while I...