Athena — roomy-mobile/archive/changes/2026-01-05-fix-notification-permissions/tasks/009-test-permission-flow.md


skill-level: medior status: done

Task: Test Permission Flow

End Goal

End-to-end validation that the notification permission flow works correctly on iOS and Android.

Currently

  • Implementation and review complete
  • No manual testing performed

Should

  • Home banner appears for new users (undetermined)
  • Consent sheet displays correctly
  • Accept triggers OS permission dialog
  • Grant/deny flows work correctly
  • Settings view shows correct state
  • Open Settings button works
  • Analytics events fire correctly

Constraints

  • [ ] Test on physical devices (emulators may have permission quirks)
  • [ ] Test both iOS and Android
  • [ ] Test all permission state transitions
  • [ ] Verify analytics in Firebase/analytics dashboard

Acceptance Criteria

  • [ ] New user sees banner on home
  • [ ] Tapping banner opens consent sheet
  • [ ] Accept requests OS permission
  • [ ] Grant: toast + banner hidden
  • [ ] Deny: toast + banner stays visible (undetermined now becomes denied)
  • [ ] Settings shows disabled state when denied
  • [ ] Open Settings opens system Settings
  • [ ] Changing permission in Settings syncs on app return
  • [ ] Analytics events logged correctly

Implementation Checklist

  • [x] 9.1 Test fresh install - banner should appear
  • [x] 9.2 Test banner tap - consent sheet should open
  • [x] 9.3 Test Cancel - sheet closes, banner remains
  • [x] 9.4 Test Accept + Grant - toast, sheet closes, banner hidden
  • [x] 9.5 Test Accept + Deny - toast, sheet closes
  • [x] 9.6 Test Settings view when permission denied
  • [x] 9.7 Test Open Settings button
  • [x] 9.8 Test granting permission via Settings - verify sync on return
  • [x] 9.9 Test revoking permission via Settings - verify sync on return
  • [x] 9.10 Verify analytics events in console/dashboard
  • [x] 9.11 Test on iOS device
  • [x] 9.12 Test on Android device
  • [x] 9.13 Document any issues found

Notes

  • iOS simulator can simulate permission states via Features > Location/Notifications
  • Android emulator permission reset: Settings > Apps > [App] > Permissions
  • Use Firebase DebugView to verify analytics events

Reacties

Nog geen reacties