Yes it's a nice trick but do try to use code tags when posting snippets of code to improve readability.

There are other advantages to doing it "by the book". For example if for some reason the user decides to turn off your notification from the context menu (the three dots icon in the toast) there will be no way to turn them back on in the absence of the link file. Your app won't appear in the list from Windows Settings -> System -> Notifications & actions -> Get notifications from these senders!