Karol

Results 31 comments of Karol

@koenvd is your app elevated ? Also custom main method was a workaround for elevation before it was fixed in 1.1

@koenvd instead of RedirectActivationToAsync you can use pinvoke version and works fine.

Not the "redirect activation" but you can use pinvoke to bring tunning app to front and kill the second one.

you can use ``` [DllImport("user32.dll")] private static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); ``` and ``` var appProcess = Process.GetProcessById((int)appInstance.ProcessId); ShowWindow(appProcess.MainWindowHandle, SwRestore); ```` not sure how log we will wait...

But my app is packaged not "packaged with external location"

@petercoin thank you for pointing me in the right direction, i had to add Bootstrap.Initialize(0x00010004); now i don't get any error but the toast is simple not sent are you...

@petercoin sorry it's just standard console app in c# not 'packaged' or 'unpackaged' with added wappssdk ``` Exe net6.0-windows10.0.22000.0 10.0.17763.0 enable enable ``` ``` static async Task Main(string[] args) {...

this is may code and toast is not showing up ``` static async Task Main(string[] args) { AppNotificationManager.Default.Register(); var appNotification = new AppNotificationBuilder() .AddArgument("action", "ToastClick") .AddText("Test Toast") .AddText("This is an...

hold on, i'm running my app on admin account that is probably why, are you running yours on Admin or standard account ? yeah when i used WCT notifications is...

Ok I can also confirm that it works fine in Standard account, It's a pity that it will not work on Admin as this is probably majority of accounts that...