-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working on Windows 10 Enterprise x64 version 17763.316 #25
Comments
Thank you for the bug report. from notifypy import Notify
n = Notify(enable_logging=True)
n.send() |
2020-12-01 10:26:48.989 | INFO | notifypy.notify:init:51 - Logging is enabled. when I replaced the [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
# $APP_ID = "Python Application (notify.py)"
$APP_ID = "{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\WindowsPowerShell\v1.0\powershell.exe"
$template = @"
<toast duration="short"><visual><binding template="ToastImageAndText02"><image id="1" src="C:\Users\Admin\.virtualenvs\upimg-IGyqvpu_\lib\site-packages\notifypy\py-logo.png" /><text id="1">Default Title</text><text id="2">Default Message</text></binding></visual></toast>
"@
$xml = New-Object Windows.Data.Xml.Dom.XmlDocument
$xml.LoadXml($template)
$toast = New-Object Windows.UI.Notifications.ToastNotification $xml
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($APP_ID).Show($toast) |
Interesting! If changing the APP ID works, go ahead and try to set the |
works too |
notification.send() returned True, but show nothing
Windows 10 Enterprise x64 version 17763.316
The text was updated successfully, but these errors were encountered: