Skip to content

fix(app): let onboarding Continue ask for the permissions still missing - #20493

Merged
mdmohsin7 merged 5 commits into
mainfrom
fix/onboarding-continue-requests-permissions
Oct 3, 2026
Merged

mdmohsin7 merged 5 commits into
mainfrom
fix/onboarding-continue-requests-permissions

Conversation

@mdmohsin7

@mdmohsin7 mdmohsin7 commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Summary

To improve the onboarding UX and address user complaints, Continue on the permissions screen now asks for whatever permissions are still missing.

Since #18436, the first-run permissions step and the returning-user interstitial only prompted from each row's Allow button, and Continue moved on without asking. "Continue" reads as "go ahead with these permissions", so users who tapped it believed they had granted notifications and location. Nothing in the app asks for notification permission again, so those users silently got no push notifications.

This restores the v1.0.552 behaviour, where Continue requested notification and location permission.

Change

  • New helper: requestMissingOnboardingPermissions (in onboarding_permissions_panel.dart) asks, in row order, for every permission still askable:
    • Android: background activity, then location, then notifications.
    • iOS: location, then notifications.
  • Left alone: allowed, blocked and service-off permissions. Their rows still offer Open Settings.
  • Always moves on: a failed ask is logged, and the user still continues.
  • Both screens use it: Continue on the first-run step (PermissionsWidget) and on the returning-user interstitial (PermissionsInterstitialPage).
  • Allow unchanged: each row's Allow still asks for just that permission.
  • Docs: app/docs/ux-contract.md §15 is updated. The "Continue never fires a system prompt by itself" rule is replaced with the new behaviour.

Test rewritten in this PR

test/widgets/ui/omi_permission_row_test.dart asserted "Continue never prompts". The expected behaviour changes here by product decision, to improve UX after user complaints, and returns to what v1.0.552 shipped. The test now taps Allow first, then checks that Continue doesn't ask again for an allowed permission or prompt for a blocked one.

Product invariants affected

none

Failure class

Failure-Class: none

Verification

  • flutter test test/widgets/onboarding_permissions_continue_test.dart: 3 tests pass.
    • Continue asks only for missing permissions, in row order.
    • It skips blocked and service-off permissions.
    • A failed ask still asks the rest and moves on.
  • The two tests that expect asks fail without the fix.
  • All 46 onboarding and permission-related test files pass (371 tests), including the updated guard.
  • flutter analyze on the changed files: no issues.
  • scripts/pr-preflight --pr-body-file <this body>: passes.
  • Not yet checked on a device.

🤖 Generated with Claude Code

Review in cubic

Since #18436 the permissions step (and the returning-user interstitial)
only prompted from each row's Allow button; Continue moved on without
asking. Users who tapped Continue believed they had granted
notifications and location, and nothing in the app asked again, so they
silently got no push notifications.

Continue now asks, in row order, for every permission that is still
askable, then moves on whatever the user chose. Allowed, blocked and
service-off permissions are left alone, and a failed ask never keeps the
user on the screen. This restores the v1.0.552 behaviour, where Continue
requested notification and location permission. ux-contract.md §15 is
updated to match.

Verification:
- flutter test test/widgets/onboarding_permissions_continue_test.dart:
  3 pass; the two that expect asks fail without the fix.
- 46 onboarding/permission test files (371 tests): all pass, including
  the updated guard in omi_permission_row_test.dart.
- flutter analyze on the changed files: no issues.

Failure-Class: none

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 7 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

The rows treat an unreadable status as askable and show Allow; Continue
skipped it instead. Read the status and request it in separate steps so
the two agree.

Failure-Class: none
@mdmohsin7
mdmohsin7 merged commit 4e93805 into main Oct 3, 2026
43 checks passed
@mdmohsin7
mdmohsin7 deleted the fix/onboarding-continue-requests-permissions branch October 3, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant