Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/expo_server_sdk_deno/index.ts>Expo#sendPushNotificationsAsync

Server-side library for working with Expo using Deno
Latest
method Expo.prototype.sendPushNotificationsAsync
import { Expo } from "https://deno.land/x/expo_server_sdk_deno@1.0.4/index.ts";

Sends the given messages to their recipients via push notifications and returns an array of push tickets. Each ticket corresponds to the message at its respective index (the nth receipt is for the nth message) and contains a receipt ID. Later, after Expo attempts to deliver the messages to the underlying push notification services, the receipts with those IDs will be available for a period of time (approximately a day).

There is a limit on the number of push notifications you can send at once. Use chunkPushNotifications to divide an array of push notification messages into appropriately sized chunks.