Baseline 2023 *
Newly available
Push API ã® PushSubscriptionOptions
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ãããã·ã¥ãµãã¹ã¯ãªãã·ã§ã³ã«é¢é£ä»ãããªãã·ã§ã³ã表ãã¾ãã
PushSubscription
ã§ PushSubscription.options
ãå¼ã¶ã¨ãèªã¿åãå°ç¨ã® PushSubscriptionOptions
ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯èªèº«ã®ã³ã³ã¹ãã©ã¯ã¿ã¼ãæã¡ã¾ããã
PushSubscriptionOptions.userVisibleOnly
èªåå°ç¨
ããã·ã¥ãµãã¹ã¯ãªãã·ã§ã³ãã¦ã¼ã¶ã¼ã«è¦ãã广ãæã¤ã¡ãã»ã¼ã¸ã®ã¿ã«ä½¿ããããã©ããã表ã boolean
å¤ã§ã。
PushSubscriptionOptions.applicationServerKey
èªåå°ç¨
ããã·ã¥ãµã¼ãã¼ãããã·ã¥ãµã¼ãã¼ãéãã¦ã¯ã©ã¤ã¢ã³ãã¢ããªã±ã¼ã·ã§ã³ã«ã¡ãã»ã¼ã¸ãéä¿¡ããã®ã«ç¨ããå ¬ééµã§ãã
PushSubscription
ã§ PushSubscription.options
ãå¼ã¶ã¨ãPushSubscriptionOptions
ãªãã¸ã§ã¯ããè¿ãã¾ãããã®ä¾ã§ã¯ããããã³ã³ã½ã¼ã«ã«åºåãã¾ãã
navigator.serviceWorker.ready.then((reg) => {
reg.pushManager.getSubscription().then((subscription) => {
const options = subscription.options;
console.log(options); // PushSubscriptionOptions ãªãã¸ã§ã¯ã
});
});
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4