Skip to content

Fix setup confirm error semantics (Firebase error handling) #53

Open
jonasew opened this issue Apr 3, 2026 · 0 comments
Open

Fix setup confirm error semantics (Firebase error handling) #53

jonasew opened this issue Apr 3, 2026 · 0 comments
Assignees

Comments

@jonasew
Copy link
Member

jonasew commented Apr 3, 2026

Problem: confirmSetup currently reports success even on some failure paths.

Target file:

  • AndroidFirebase.java:144

Refactor:

  • Change API contract to include onError callback for confirmSetup.
  • Propagate failures to setup flow instead of silently continuing.

Acceptance criteria:

  • Firebase write failure gives explicit UI error and does not proceed as confirmed.
@francinv francinv self-assigned this Apr 4, 2026
francinv pushed a commit that referenced this issue Apr 6, 2026
#52, #53)

- Track all Firebase listeners via cleanup runnables in AndroidFirebase
- Add removeAllListeners() to FirebaseAPI interface
- Add stop() to GameNetworkHandler, called from GameScreen hide/dispose
- Fix confirmSetup: propagate errors to onError callback instead of
  silently calling onSuccess on failure paths
- Update SetupFlowController to pass error callback to confirmSetup
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants