Skip to main content
The mobile package provides cross-platform push notification support, handling token registration, validation, and payload formatting for Apple Push Notification Service (APNS), Firebase Cloud Messaging (FCM), and Windows Notification Service (WNS).

Quick Start

Push Providers

The PushToken Type

Token Parsing

From Headers

From Request Body

Token Validation

APNS Tokens

APNS tokens are 64 hexadecimal characters (32 bytes):

FCM Tokens

FCM tokens are 140-200 characters, alphanumeric with : and -:

Generic Validation

Push Registration Endpoint

Push Payload

The PushPayload type provides a unified format that converts to platform-specific payloads:

Creating Payloads

Converting to APNS Format

Converting to FCM Format

Sending Notifications

With APNS (Apple)

With FCM (Firebase)

Platform-Agnostic Sending

Topic Subscriptions

Token Cleanup

Remove invalid tokens:

Client Implementation

iOS (Swift)

Android (Kotlin)

Flutter (Dart)

Next Steps

Deep Links

Universal and App Links

App Store

Version checking and updates

API Reference

Complete API documentation