Safari Extension Notifications Only Work Once — Not Triggering on Subsequent Calls
i create extensions using with manifest version V3
Issue Summary:
- Notifications work the first time I trigger them on a new machine or after a fresh extension install.
- After that, even though the same API call is triggered again (confirmed via logging), no notifications appear.
- I’ve tested this behavior on multiple systems — same result: only one initial notification appears, and then none.
Code Snippet Used for Notifications: (service_worker:-background.js)
if (chrome.notifications?.create) {
chrome.notifications.create({
type: "basic",
iconUrl: chrome.runtime.getURL("icons/icon-48.png"),
title: Title,
message: Message
});
} else {
chrome.tabs.query({}, (tabs) => {
for (const tab of tabs) {
chrome.tabs.sendMessage(tab.id, {
type: "notify",
title: Title,
message: Message
}).catch(err => {
console.warn("Failed to send notify message:", err);
});
}
});
}
Observed Behavior in Safari:
- The chrome.notifications.create API appears to work once, and then no visible notifications are shown afterward.
- The API call is executed — confirmed via logging — but the notification is not displayed.
- I've verified that notification permissions are granted for the extension.
- No errors are thrown.
i need to trigger/create notification safari browser
Mac mini, macOS 15.3