mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-26 20:49:31 +00:00
fix(ios): update notification permission copy
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user