implemented a guided notification permission flow triggered on the first Talk visit

This commit is contained in:
2026-07-06 20:01:45 +02:00
parent 3be0113f93
commit 38a271929c
11 changed files with 211 additions and 30 deletions
+11 -1
View File
@@ -160,7 +160,16 @@ class PushStatusRow {
/// for informational details (e.g. the registered URL).
final String? detail;
const PushStatusRow({required this.label, required this.state, this.detail});
/// When true, the row offers a shortcut into the OS notification settings —
/// the only place the user can (re)grant the permission after a denial.
final bool opensNotificationSettings;
const PushStatusRow({
required this.label,
required this.state,
this.detail,
this.opensNotificationSettings = false,
});
}
const _pendingDetail =
@@ -181,6 +190,7 @@ List<PushStatusRow> buildPushStatusRows(PushStatusReport r) => [
PushStatusRow(
label: 'Benachrichtigungsberechtigung',
state: r.osPermission,
opensNotificationSettings: true,
detail: switch (r.osPermission) {
PushCheck.ok => null,
PushCheck.fail =>