diff --git a/assets/vue/App.vue b/assets/vue/App.vue
index 8e84f70337e..53c49123fc9 100644
--- a/assets/vue/App.vue
+++ b/assets/vue/App.vue
@@ -186,5 +186,16 @@ watch(
onMounted(async () => {
mejsLoader()
await securityStore.checkSession()
+
+ if ("serviceWorker" in navigator) {
+ navigator.serviceWorker
+ .register("/service-worker.js")
+ .then((registration) => {
+ console.log("[PWA] Service Worker registered with scope:", registration.scope)
+ })
+ .catch((error) => {
+ console.error("[PWA] Service Worker registration failed:", error)
+ })
+ }
})
diff --git a/assets/vue/components/social/UserProfileCard.vue b/assets/vue/components/social/UserProfileCard.vue
index d9decef55dc..eb299c30c0f 100644
--- a/assets/vue/components/social/UserProfileCard.vue
+++ b/assets/vue/components/social/UserProfileCard.vue
@@ -96,6 +96,65 @@
+ + {{ t("Checking push subscription...") }} +
+ ++ {{ t("You're subscribed to push notifications in this browser.") }} +
++ {{ t("Push notifications are not enabled in this browser.") }} +
+{ + "gotify_url": "http://localhost:8080", + "gotify_token": "A0yWWfe_8YRLv_B", + "enabled": true, + "vapid_public_key": "BNg54MTyDZSdyFq99EmppT606jKVDS5o7jGVxMLW3Qir937A98sxtrK4VMt1ddNlK93MUenK0kM3aiAMu9HRcjQ=", + "vapid_private_key": "UgS5-xSneOcSyNJVq4c9wmEGaCoE1Y8oh-7ZGXPgs8o" +}', + ] + ) ; $this->updateFormFieldsFromSettingsInfo($builder);