Good, I want to send an automatic push notification in windows to all the users that I choose, every time someone makes a record in the database or every time someone executes a function.
I have this code in js that sends a push notification, but I want not only the notification to be sent to the user who executes this script, but also to all the users that I choose.
<script>
Push.create("Aviso de prueba", {
body: "Esto es una notificacion de aviso",
icon: 'img/logo.jpg',
timeout: 4000,
onClick: function () {
window.location="mi_url";
this.close();
}
});