fix: implement callback-based Notification.requestPermission compatibility and manual key extraction fallback to fix mobile push subscription

This commit is contained in:
2026-06-02 20:07:44 +02:00
parent a85d6e42fc
commit c2b58baa6e
3 changed files with 58 additions and 6 deletions
@@ -58,7 +58,8 @@ export default function PushNotificationSettings() {
trackPlausibleEvent(PlausibleEvents.PUSH_DISABLED)
}
} catch (err: unknown) {
const message = err instanceof Error ? err.message : t('profile.push_error')
console.error('Failed to toggle push notifications:', err)
const message = err instanceof Error ? `${err.name}: ${err.message}` : String(err)
showAlert(message)
void loadPrefs()
} finally {