Enbbox Docs

Push Providers

Set up push notification providers in Enbbox. Integration guides for Firebase Cloud Messaging (FCM) and Apple Push Notification service (APNs).

Firebase Cloud Messaging (FCM)

  1. Create a Firebase project at console.firebase.google.com
  2. Go to Project Settings → Cloud Messaging
  3. Generate a service account key (JSON)
  4. Upload to Enbbox → IntegrationsFCM

Client Setup (Web)

import { getMessaging, getToken } from "firebase/messaging";

const token = await getToken(messaging, { vapidKey: "YOUR_VAPID_KEY" });

await enbbox.subscribers.setCredentials(subscriberId, "fcm", {
  deviceTokens: [token],
});

Apple Push Notification Service (APNs)

  1. Enable Push Notifications in your Apple Developer account
  2. Generate an APNs key (.p8 file)
  3. Configure in Enbbox with your Key ID, Team ID, and Bundle ID

Expo Push Notifications

For React Native apps using Expo:

import * as Notifications from "expo-notifications";

const token = (await Notifications.getExpoPushTokenAsync()).data;

await enbbox.subscribers.setCredentials(subscriberId, "expo", {
  deviceTokens: [token],
});

On this page