Many modern applications are sending notifications that OS shows to the user so i thought it will be simple.
I’m using the latest stable version of Unity: 2021.3.24f1. The target platform is windows (10 or 11 obviously). Windows has its built-in notification system that any application can be capable of using. How am i gonna create/send/show this notification from unity project(game)?
There are several questions on the internet and unfortunately none of them are answered to this day.

i’ve made that notification pop up from a .NetFramework console app project created in Visual Studio by just installing a nuget package called Microsoft.Toolkit.Uwp.Notifications. So i thought i could just move the package files into unity, and use the following code to test it:
new ToastContentBuilder()
.AddText("Hello dear Unity Forum community!")
.Show();
But unfortunately i haven’t managed to get it to work, with the following problems:
"'ToastContentBuilder' does not contain a definition for 'Show'",
"Unable to resolve reference 'Windows.Foundation.UniversalApiContract'"
Today, i’ve found that unity has something built-in. Unity - Scripting API: Toast. There is no other place on the internet where this feature is mentioned, and with this extremely scarce documentation all i’ve managed to write is:
var toast = UnityEngine.WSA.Toast.Create("", "Hello!");
toast.Show();
it says “for windows store”. i’m not doing anything for windows store, but “maybe” it will work.
According to the documentation, this should show a notification with a simple text “Hello”.
No errors, successfully entering play mode, but nothing is being shown.
what am i doing wrong? and how to solve it? I just want a simple native windows notification message, nothing fancy. I hope this empty unanswered niche will be finally filled. Thank you in advance!
