-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Notification does not works #917
Comments
Did you request permissions to show notifications first? For example:
|
Oh, do you have notifications enabled in your |
I have enabled all API features: |
I have the same problem. The notification doesn't work in the osx build, but it works in dev mode. |
Related to #1570 |
@AlexanderShvaykin |
Unfortunately we need better info to reproduce the error. Seems like it only happens on some specific setups. |
This is happening to me also:
I am not a desktop developer, but my uneducated investigation shows this has to do with initialising the Window Runtime, and mod.rs specifies RO_INIT_MULTITHREADED. The error code returned leads me to search results with the error message "Cannot change thread mode after it is set". So perhaps we are trying to reinitialise WinRT in a multithreaded mode, whereas it was initialised as singlethreaded already? This is absolutely uneducated tinkering, but I would like to assist to clear this up as it is preventing me moving forward. Any direction from the Rust and Windows experts is welcome. |
I have a fix for this, I'll push it tonight. |
When working with Push.js(https://pushjs.org/docs/introduction), the desktop notification will pop up but then in less than one second the window (both dev and prod) will crash. |
Describe the bug
I tried two methods to send a notification:
result: nothing happened: no notificaions and no errors
app crashed with errors:
To Reproduce
Steps to reproduce the behavior:
then click buttons:
Platform and Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: