[BTAPP-58] Fix the Wealthsimple notification doorbell going silently stale #83
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "bug/BTAPP-58"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ticket
BTAPP-58 Wealthsimple notification doorbell has stopped triggering syncs
Summary
useDoorbellnow re-pushes this build'sEXPO_PUBLIC_API_URL/API_KEYto native storage on every mount and app foreground while the toggle is on, not only on a manual flip — the actual root cause, since a dev-client JS reload could drift the native config with nothing to re-sync it./sync/wealthsimplePOST on demand and reports the actual HTTP status or error in the UI, so the doorbell's live config can be verified without waiting for a real Wealthsimple notification.Notes for the reviewer
Doorbell.kt,NotificationDoorbellModule.kt) are not covered by CI or automated tests, per this repo's existing convention (app/CLAUDE.md: "The Kotlin has no test coverage, and CI does not compile it").app/.envon Chris's phone/dev machine usesEXPO_PUBLIC_API_URL=http://bravo:9999(bare hostname) rather than the IP.env.examplerecommends. Worth a manual check that "bravo" resolves reliably from the phone on every network path — flagged in the ticket, out of scope for a PR since it's a gitignored local env file.