Mobile: Push notifications for job completion and low session balance #30
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
Once a user submits a job, they must keep the app open and watch the feed to know when it is complete. There is no background notification. For expensive long-running jobs this is a poor experience.
What to build
Registration: On first launch (after onboarding), request Expo push notification permission with a clear explanation. Store the Expo push token server-side associated with the user's session/identity.
Job complete notification: When the API marks a job complete, the server sends a push notification: "Your job is done — Timmy says: [result excerpt]" with a deep link back to the History tab.
Low balance warning: When session balance drops below 500 sats, send a local notification (no server round-trip needed): "⚡ Low session balance — top up to keep working with Timmy".
Backend: Add a
push_tokenscolumn to the sessions or identities table. On job completion, call Expo's push API with the stored token.Acceptance criteria