feat: update push notification subscription flow and remove deprecated opt-in component
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m43s

This commit is contained in:
2026-04-19 22:16:38 -04:00
parent d7b1962903
commit fd28c89cbf
6 changed files with 15 additions and 246 deletions

View File

@@ -15,6 +15,7 @@ import {
import { getCachedImageUrl, getCachedImageBlob } from '@/common/imageCache'
import '@/assets/styles.css'
import ModalDialog from './ModalDialog.vue'
import { subscribeToPushWithResult } from '@/services/pushSubscription'
const router = useRouter()
const show = ref(false)
@@ -139,6 +140,7 @@ const submit = async () => {
}
// Authenticate parent and navigate
authenticateParent(stayInParentMode.value)
subscribeToPushWithResult() // fire-and-forget — browser gesture is satisfied by the PIN button click
close()
const returnUrl = consumePendingReturnUrl()
router.push(returnUrl || '/parent')