Skip to content

Add push notification registration and preferences #21

Description

@Lakes41

Difficulty: Advanced

Type: Feature

Summary

Add the foundation for push notifications so users can receive updates about role changes, access grants, and membership status changes.

Current Behaviour

The README roadmap lists push notifications, but the app does not include notification permission handling, token registration, or user notification preferences.

Expected Behaviour

Users should be able to opt in to push notifications, register their device token with a backend endpoint, and manage basic notification categories from settings.

Suggested Implementation

Add Expo Notifications support, permission prompts, token registration, and settings toggles for supported categories. Use a service boundary so backend registration can be mocked until a live endpoint is available.

Files or Areas Likely Affected

  • app/settings.tsx
  • src/features/notifications/
  • src/lib/guildpassClient.ts
  • app.json
  • .env.example
  • README.md
  • tests/

Acceptance Criteria

  • Users can grant or deny notification permissions
  • Device push tokens are registered through a service boundary
  • Notification preferences can be viewed and changed in settings
  • Permission denial is handled without breaking the app
  • Mock mode can simulate token registration success and failure
  • Documentation explains required Expo notification setup

Additional Notes

Assumption: backend support may not be ready yet. If so, define the client-side contract and provide a mock adapter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions