Getting Started

Expo Setup

Configure jxpush to work with Expo Push Notifications service.

Prerequisites

  • An Expo account
  • An Expo app (Expo Go or Standalone)

Basic Setup

Initialize the client with the expo backend.

typescript
import { PushClient, ProviderType } from 'jxpush';

const client = new PushClient({
  provider: ProviderType.EXPO,
  // Optional: only needed if you want higher rate limits
  expo: {
    accessToken: process.env.EXPO_ACCESS_TOKEN
  }
});

Access Token (Optional)

An access token increases your rate limits from 600 to 6,000 requests per hour. You can generate one in your Expo account settings.

  1. Go to expo.dev
  2. Navigate to Account Settings → Access Tokens
  3. Create a new token
  4. Add it to your .env file