-
-
Notifications
You must be signed in to change notification settings - Fork 819
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
new feature: synchronizes all system notifications with the browser notifications #829
Comments
I'm not really sure if there's a use-case for this to be provided by default. But if you create a service provider package (npm compatible) and provide the full source I will gladly add it to the documentation. |
There is no need for a service provider, here you only need a file for notification that is written with JavaScript and called in the index.js |
this file called in index.js and in
this is Notification.js:
|
Looks like this is actually creating native notifications. I thought by "synchronize" that it was the other way around. Creating native notifications is actually already supported globally with configuration If you want the option to do both, simply publish a PR for the client with changes to the Notification to allow that :) |
Yes, you can open a Pull Request to add a feature to support both "OS.js notifications" and "Native notifications" at the same time. But just to make sure we're talking about the same thing here; this needs to be implemented in the actual client module. I.e.: https://github.com/os-js/osjs-client/blob/master/src/notification.js where existing functionality exists. |
@andersevenrud
Hello, we have added a new feature to the system which synchronizes all system notifications with the browser. If you are interested, we would like to send a pull request as a new feature to be merged into the main system.
File Notification.js is in path:
src/client
This file called in
src/client/index.js
screenshot of test in os-js:
in windows and ubuntu
The text was updated successfully, but these errors were encountered: