-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Native Notification on Windows 10 Action center not works as expect #6824
Comments
I have noticed this in my native application as well as in the test application above. |
Thanks for reporting. Will look to fix it. Yes, the code from upstream is there. But it's broken because of the missing registry entry and shortcut link, which is supposed to be handled during application installation. Will find a way to enable them. |
Excuse my ignorance. Is this something I can grab and test? Thanks. |
Not for now. Will let you know. However proposals on how it will be done would be helpful: The latest win10 requires that any application must have a shortcut in start menu so it would be allowed to show notifications. And to receive event when users interact with the notification, Chrome requires that an entry with application specific CLSID in the system registry should be set and pointed to the application exe. I'm trying to design an API for the shortcut creation, but any suggestions are welcome. |
Well we usually have an installer that takes care of the shortcut creation as well any registry settings. So that shouldn't be a problem and only needs to be documented. Will the native Win10 notifications work out of the box after that? And starting from which NWJS version? |
It is still to be fixed in NW, as the current CLSID is builtin. Will let applications customize it via package.json or API call... |
btw, NW needs to know the AppUserModelID in the shortcut lnk file as well. |
This is our first dive into NW. We're only using NW to launch an Intranet page so that we can have more control over the browser window. We're handling the minimize and close events and placing our application in the system tray. We're just pushing out the NW folder and our app folder to the users computers and adding nw.js to the PATH. We're doing a redirect to an HTTPS page, so we found we need to get a certificate for that so that the notification itself shows. The notification showing up in the Action Center worked until a few weeks ago. |
Did they install the win10 fall creators update? The requirements on the
shortcut is introduced in that update:
https://stackoverflow.com/questions/46814858/toast-notification-not-working-on-windows-fall-creators-update
…On Thu, Oct 18, 2018, 7:09 PM betsonserviceportal ***@***.***> wrote:
This is our first dive into NW. We're only using NW to launch an Intranet
page so that we can have more control over the browser window. We're
handling the minimize and close events and placing our application in the
system tray. We're just pushing out the NW folder and our app folder to the
users computers and adding nw.js to the PATH. We're doing a redirect to an
HTTPS page, so we found we need to get a certificate for that so that the
notification itself shows. The notification showing up in the Action Center
worked until a few weeks ago.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#6824 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAKGGUU7qPszQR0n7WaBc4k2PxG0ali-ks5umGFWgaJpZM4XUcw8>
.
|
I don't see that update in my history. |
will the native Windows 10 notifications work in the 0.34.1? Or maybe the upcoming 0.34.2 - or will it take much longer @rogerwang ? We really would like to have them soon.... |
It's being worked on and will take more efforts than 0.34.2. |
Base on the example at the top and tested v0.39.3 with Windows 10, still not able to make the notification under Windows 10 Action Center
|
Base on the example at the top and tested v0.44.0 with Windows latest 10, still not able to make the notification under Windows 10 Action Center
|
Base on the example at the top and tested v0.50.2 with Windows 10 Pro Version 2004, still not able to make the notification under Windows 10 Action Center
|
Is somewhere docs, how use native win 10 noti center via NWjs? |
Base on the example at the top and tested v0.54.1 with Windows 10 Pro Version 20H2, still not able to make the notification under Windows 10 Action Center which use the index.html and package.json at the top |
Nothing new to add here from my side, I do experience the same problem. Is there any release date preview for this? |
https://bugs.chromium.org/p/chromium/issues/detail?id=734095&desc=3
base on the above change in chromium if I understand correctly, the chrome should already support the Native Notification on Windows 10 Action center
I just have a quick test on nwjs-sdk-v0.33.4-win-x64.zip
And I discover that the native notification on Windows 10 is not showing (not under the Action Center).
It will still show the chrome style notification.
provided the following demo index.html
and package.json
Thanks so much.
The text was updated successfully, but these errors were encountered: