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
Notifications are not silent in chrome #253
Comments
Does push.js even shows notification in chrome if you are using localhost,i.e , http connection..In my case it is working well in edge but i cant see any notification in chrome ? So, I infer that chrome is blocking notification on sites with insecure http connection as it blocks Notifications from Notification API. |
Notification API should work fine in localhost. Please check that you have not denied push permission. |
No , I have allowed notifications and popups . The promise is being fulfilled, it is just that notification is not showing up. |
Please specify the OS and Browser versions. Thanks |
OS -Windows |
Returning to the principal issue, @theLufenk , @kg-kartik , @vlazar & @Calinou do you know why silent notifications are not working? I have made sure to the pass in the silent: true parameter and my notifications are coming through - just not silently. Sample code:
|
@NamanSharma5 Would be simple enough to add support for it here I believe. A Pull Request is always welcome :) |
@kg-kartik Could you please open a separate issue for your question. Thanks. |
@theLufenk Why not just use all of the fields found under Notification API Instance properties? As of now, only |
I submitted #286 |
Hi I am trying to use the silent option of Push.js but it is still making noise in Chrome, when I receive notifications. I am running this on a server with the files stored under the public directory.
My code is:
Push.create('Message',{
timeout:5000,
onClick: function(){
window.focus();
this.close;
},
silent:true
}
Help me please.
Thank you.
The text was updated successfully, but these errors were encountered: