fix(ios): update notification permission copy

This commit is contained in:
joshavant
2026-06-21 20:45:40 -05:00
committed by Josh Avant
parent 112a0ddaf8
commit 1168ac2fcd
5 changed files with 12 additions and 14 deletions

View File

@@ -226,7 +226,7 @@ struct SettingsProTab: View {
} message: {
Text(self.scannerError ?? "")
}
.alert("OpenClaw Hosted Push Relay", isPresented: self.$showNotificationRelayDisclosure) {
.alert("Warning: OpenClaw Hosted Push Relay", isPresented: self.$showNotificationRelayDisclosure) {
Button("Continue") {
self.requestNotificationAuthorizationFromSettings()
}

View File

@@ -809,7 +809,7 @@ extension SettingsProTab {
case .allowed:
"OpenClaw can show approval prompts and event alerts when the app is not active."
case .notAllowed:
"iOS is blocking OpenClaw notifications. Enable them in iOS Settings."
"Notifications have been denied. Enable them in iOS Settings."
case .notSet:
"Enable notifications here to receive approval prompts and event alerts outside the app."
case .unknown:
@@ -828,10 +828,6 @@ extension SettingsProTab {
}
var notificationRelayDisclosureMessage: String {
let relayHost = PushBuildConfig.openClawHostedRelayHost
return """
This build sends push notification delivery data through OpenClaw's hosted relay at \(relayHost). \
Continue only if you want OpenClaw to request iOS notification access.
"""
"Enabling Notifications sends delivery data through OpenClaw's hosted push relay."
}
}

View File

@@ -332,12 +332,13 @@ extension SettingsProTab {
HStack(alignment: .top, spacing: 12) {
ProIconBadge(systemName: "bell.slash.fill", color: OpenClawBrand.warn)
VStack(alignment: .leading, spacing: 4) {
Text("Approval alerts are off")
Text("Notifications are off")
.font(.subheadline.weight(.semibold))
Text(
"""
OpenClaw can still show approval review while the app is open and connected. \
Enable Notifications to receive approval prompts outside the app.
Exec approvals can only be reviewed while OpenClaw is open and connected.
Enable Notifications to receive approval notifications while OpenClaw is not open.
""")
.font(.caption)
.foregroundStyle(.secondary)

View File

@@ -90,7 +90,7 @@ enum SettingsNotificationStatus: Equatable {
switch self {
case .checking: "Checking"
case .allowed: "Enabled"
case .notAllowed: "Blocked"
case .notAllowed: "Denied"
case .notSet: "Not Enabled"
case .unknown: "Unknown"
}

View File

@@ -52,12 +52,13 @@ private struct NotificationPermissionGuidanceCard: View {
var body: some View {
VStack(alignment: .leading, spacing: 14) {
VStack(alignment: .leading, spacing: 6) {
Text("Approval alerts are off")
Text("Notifications are off")
.font(.headline)
Text(
"""
This request can still be reviewed while OpenClaw is open and connected. Enable \
Notifications to receive approval prompts outside the app.
Exec approvals can only be reviewed while OpenClaw is open and connected.
Enable Notifications to receive approval notifications while OpenClaw is not open.
""")
.font(.subheadline)
.foregroundStyle(.secondary)