問題タブ [web-notifications]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
php - サーバーからの Web 通知
データベースを更新したときにサーバーからクライアントに通知をプッシュしたい。
これは私のコントローラーです:
そして私の見解では、私は次のように呼びました:
しかし、ページにアクセスするhttp://localhost:8080/admin/client_caba/finish
と、ダイアログが表示され、アクションが終了しません...

どこが間違っていますか?そして、この問題を解決し、パラメータをポップアップ通知に渡す方法を教えてください...ありがとう
google-chrome - Send desktop notifications in Chrome or Firefox from a closed web app?
My goal is to send Gmail-style desktop notifications in Chrome or Firefox from a web app (let's call it X) that is NOT currently open in the browser, without requiring the user to install an app or extension. It's okay if the user needs to grant permission to receive notifications from X, and it's okay if the browser needs to be open for the notification to appear, as long as X doesn't need to be open in the browser. A solution that doesn't require any browser window to be open would also work.
I just spent the day digging into this, and so far I think I've learned:
- Since OSX Mavericks, it has been possible to do this in Safari 7+ via Safari Push Notifications.
- The Web Notifications API works in Chrome/Firefox, but requires the user's browser to be open to X.
- Twitter sends similar web notifications without asking the user for permission first, but requires the user's browser to be open to Twitter.
- There are lots of references to possible Growl implementations, but as far as I can tell, all of them require the user to install Growl and/or a Growl-enabled app to work.
I could be wrong about any of my statements above - I'd love to hear it! - and I'm open to any other solution too. Any ideas?
Thanks for reading.
javascript - Chrome 通知がクリックされたときに既に開いているタブに移動する
Web ページ (Chrome アプリや拡張機能ではない) の Javascript は、Chrome デスクトップ通知を作成し、通知がクリックされたときに開く URL を設定できます。
クリックすると、その通知を作成したタブを開く通知を作成することはできますか?
javascript - Web/デスクトップ通知 API - ページの更新時にすべての通知を強制的に閉じる
私は Web Notification API または Desktop Notification API を見てきました。それがどのように構築されているか、またそれがサポートする属性とイベントの数を理解しています。通知はブラウザから分離されているため、たとえばブラウザが最小化されていても通知を表示できます。
私の質問は、通知を Web ページ上のアクションにリンクする方法はありますか? 特に、ページを更新するときにすべての通知ダイアログを閉じたいです。どうすればそれを実現できますか?
前もって感謝します。
javascript - タグ名で JS 通知オブジェクトを非表示
プロジェクトの通知 API を使用して、各通知に一意のタグ (ID) があるブラウザー通知を表示していますが、close を呼び出さずに、タグ名で通知を閉じたり非表示にしたりする方法を見つけることができないようですこれは、元のページ以外のページで閉じられている可能性があるためです。このようなことは可能ですか?
mozilla - Mozilla は「通知を常にブロックする」を元に戻します
Web 通知 API を使用すると、Mozilla はユーザーに許可を求めます。「通知を常にブロックする」を選択した場合、その設定を元に戻す方法はないようです (?)。
about:config を確認しましたが、dom.notifications.enabled は true です。
ただし、 Notification.requestPermission() を呼び出すと、ポップアップが再び表示されることはありません...