Skip to main content
Device registration connects the current signed-in user to the device token that the operating system gives your app. Use it after your app has completed the platform push-notification setup and after the SDK client is initialized for a signed-in user.
The TypeScript SDK does not expose a client-side device registration API. Use the native iOS, Android, or Flutter SDK APIs on device, and use server-side/webhook flows for web delivery.

Platform Surface

Parameters

Android registration does not accept a token argument in the current SDK API. The Android SDK registers the current signed-in user/device through AmityCoreClient.registerPushNotification().

Register A Device

Register the current signed-in user/device after platform push setup and SDK initialization are complete.
On Android, registerPushNotification() is a no-op for visitor and bot users. Register only after the app has a signed-in user session.

Unregister A Device

Call unregister when the user signs out or when this app installation should stop receiving push notifications for the currently registered user.
Complete platform setup before calling the SDK registration API: