Skip to content

Commit 0bcbaf2

Browse files
committed
fix(ios): remove permission pre-prompts
1 parent 8c68f74 commit 0bcbaf2

12 files changed

Lines changed: 136 additions & 525 deletions

‎apps/.i18n/native-source.json‎

Lines changed: 46 additions & 206 deletions
Large diffs are not rendered by default.

‎apps/ios/APP-REVIEW-NOTES.md‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ The push wake and node status demo completed.
169169

170170
## Device Permissions
171171

172+
OpenClaw does not present an aggregate permissions page during onboarding.
173+
Optional access is requested when the reviewer invokes the related feature or
174+
taps `Continue` for a permission in Settings. `Continue` immediately presents
175+
the native iOS authorization prompt, with no additional OpenClaw dialog or
176+
deferral action.
177+
172178
1. Tap `Settings`.
173179
2. Tap `Permissions`.
174180
3. Confirm these current app controls are available:
@@ -177,11 +183,19 @@ The push wake and node status demo completed.
177183
- `Keep Awake`
178184
4. Confirm the always-visible `Apple Health` section identifies the integration
179185
as `Apple Health Summaries`.
180-
5. Expand `Privacy & Access` and confirm these request controls are available:
181-
- `Contacts` / `Request Access`
182-
- `Calendar (Add Events)` / `Request Access`
183-
- `Calendar (View Events)` / `Request Full Access`
184-
- `Reminders` / `Request Access`
186+
5. Expand `Privacy & Access` and confirm these controls show `Continue` when
187+
access has not previously been requested:
188+
- `Contacts`
189+
- `Photos`
190+
- `Calendar (Add Events)`
191+
- `Calendar (View Events)`
192+
- `Reminders`
193+
6. Tap `Continue` for any permission that has not been requested. Confirm the
194+
corresponding native iOS authorization prompt appears immediately, then
195+
make the permission choice in that system prompt.
196+
197+
If the review device already has a decision for a permission, the row shows
198+
its current status or a management action instead of `Continue`.
185199

186200
### Optional Apple Health summary
187201

‎apps/ios/Sources/Onboarding/OnboardingPermissionsStep.swift‎

Lines changed: 0 additions & 103 deletions
This file was deleted.

‎apps/ios/Sources/Onboarding/OnboardingWizardTypes.swift‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import SwiftUI
33

44
enum OnboardingStep: Int, CaseIterable {
55
case intro
6-
case permissions
76
case welcome
87
case mode
98
case connect
@@ -24,7 +23,6 @@ enum OnboardingStep: Int, CaseIterable {
2423
var title: LocalizedStringKey {
2524
switch self {
2625
case .intro: "Welcome"
27-
case .permissions: "Permissions"
2826
case .welcome: "Connect Gateway"
2927
case .mode: "Gateway Setup"
3028
case .connect: "Gateway Details"
@@ -35,7 +33,7 @@ enum OnboardingStep: Int, CaseIterable {
3533

3634
var canGoBack: Bool {
3735
switch self {
38-
case .intro, .permissions, .welcome, .success:
36+
case .intro, .welcome, .success:
3937
false
4038
case .mode, .connect, .auth:
4139
true

‎apps/ios/Sources/Onboarding/OnboardingWizardView.swift‎

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct OnboardingWizardView: View {
7474
}
7575

7676
private var isFullScreenStep: Bool {
77-
self.step == .intro || self.step == .permissions || self.step == .welcome || self.step == .success
77+
self.step == .intro || self.step == .welcome || self.step == .success
7878
}
7979

8080
private var currentProblem: GatewayConnectionProblem? {
@@ -139,8 +139,6 @@ struct OnboardingWizardView: View {
139139
switch self.step {
140140
case .intro:
141141
self.introStep
142-
case .permissions:
143-
self.permissionsStep
144142
case .welcome:
145143
self.welcomeStep
146144
case .success:
@@ -403,10 +401,6 @@ struct OnboardingWizardView: View {
403401
OnboardingIntroStep(onContinue: self.advanceFromIntro)
404402
}
405403

406-
private var permissionsStep: some View {
407-
OnboardingPermissionsStep(onContinue: self.advanceFromPermissions)
408-
}
409-
410404
private var welcomeStep: some View {
411405
OnboardingWelcomeStep(
412406
statusLine: self.statusLine,
@@ -1148,23 +1142,16 @@ extension OnboardingWizardView {
11481142
}
11491143

11501144
private func advanceFromIntro() {
1151-
self.statusLine = ""
1152-
self.navigate(to: .permissions)
1153-
}
1154-
1155-
private func advanceFromPermissions() {
1156-
// Marked here, not on the intro Continue: an interrupted first run must
1157-
// replay intro + permissions on relaunch instead of skipping them forever.
1145+
// An interrupted first run replays the intro until the user explicitly continues.
11581146
OnboardingStateStore.markFirstRunIntroSeen()
11591147
self.requestLocalNetworkAccess(reason: "onboarding_continue")
11601148
self.statusLine = ""
11611149
self.navigate(to: .welcome)
11621150
}
11631151

11641152
private func requestLocalNetworkAccessIfPastIntro(reason: String) {
1165-
// The local-network prompt waits until pairing starts so it never stacks
1166-
// on top of the permission prompts users trigger on the permissions step.
1167-
guard self.step != .intro, self.step != .permissions else { return }
1153+
// Keep the first-run intro focused; request local-network access when pairing starts.
1154+
guard self.step != .intro else { return }
11681155
self.requestLocalNetworkAccess(reason: reason)
11691156
}
11701157

‎apps/ios/Sources/Permissions/DevicePermissionRow.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import SwiftUI
22

3-
/// Capsule action used by permission rows: filled for the initial "Allow",
3+
/// Capsule action used by permission rows: filled for the initial "Continue",
44
/// bordered for repair actions like "Open Settings" or "Upgrade".
55
struct DevicePermissionActionButtonStyle: ButtonStyle {
66
let prominent: Bool
@@ -38,7 +38,7 @@ struct DevicePermissionActionButtonStyle: ButtonStyle {
3838
}
3939

4040
/// One device permission with an icon tile, explanation, and a single clear
41-
/// affordance: Allow when unset, a green check when granted, a repair action otherwise.
41+
/// affordance: Continue when unset, a green check when granted, a repair action otherwise.
4242
struct DevicePermissionRow: View {
4343
let identifierPrefix: String
4444
let identifier: String

0 commit comments

Comments
 (0)