Skip to main content

Notifications

Resibibo uses expo-notifications for budget alert push notifications.

Budget Alerts

The notification system monitors budget utilization and sends local push notifications at three thresholds:

ThresholdDescription
80%Warning that the user is approaching their budget limit
90%Alert that the budget is nearly exhausted
100%Notification that the budget has been exceeded

Implementation

Notifications are triggered locally on the device (no server-side push). After a transaction is created or updated, the app checks all active budgets:

  1. Calculate current spend for the budget's category and period
  2. Compare against the budget limit
  3. If a threshold is crossed, schedule a local notification
  4. Each threshold fires only once per budget period

User Settings

Users can toggle notifications on/off in the Settings tab. The preference is stored locally via MMKV.

Permissions

  • On iOS, the app requests notification permission on first toggle-on
  • On Android, notifications work without explicit permission (Android 12 and below) or request permission on Android 13+