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
+2 -1
View File
@@ -193,7 +193,8 @@ export default function SettingsForm({ logbookId, onLogbookRestored }: SettingsF
trackPlausibleEvent(PlausibleEvents.PUSH_ENABLED)
} catch (err: unknown) {
console.error('Failed to enable push after invite:', err)
await showAlert(err instanceof Error ? err.message : t('profile.push_error'))
const message = err instanceof Error ? `${err.name}: ${err.message}` : String(err)
await showAlert(message)
}
}