Skip to content

js-bao-wss-client


js-bao-wss-client / RegisterPushDeviceParams

Interface: RegisterPushDeviceParams ​

Parameters for notifications.registerDevice(): the device push token, its platform and environment, and optional device details.

Properties ​

appVersion? ​

optional appVersion?: string


bundleId? ​

optional bundleId?: string


deviceName? ​

optional deviceName?: string


environment ​

environment: "sandbox" | "production"

APNs sandbox vs production; FCM has no sandbox — use "production".


platform ​

platform: "ios" | "macos" | "android"


token ​

token: string

APNs hex device token or FCM registration token.

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30