Skip to Content
Push NotificationsSending Notifications

Sending push notifications

Send a test notification from OneSignal, then choose an audience and schedule for your own messages.

Prerequisites

  • Complete push notification setup.
  • Open the app on your test device and grant notification permission.
  • Confirm that the device has a subscribed push subscription in OneSignal.

Create a push message

Open your app in the OneSignal dashboard  and create a Push message. Add an internal name, a title and the message text. OneSignal’s push guide  covers the composer and scheduling options.

Send to your test device

Use Send Test Message to select your test subscription. Put the app in the background before sending so you can check the system notification.

Verify

Confirm the notification arrives on the device. If it does not, check the subscription status, device permissions and the delivery result in OneSignal.

Choose your audience and schedule

For a live message, select the intended audience or segment and delivery time. Review the recipients before sending; a message without audience restrictions can reach all subscribed users.

Send to a signed-in user

NativeExpress uses the Supabase user ID as OneSignal’s External ID. Use that ID when targeting a user through OneSignal’s server API. Keep the OneSignal API key on your backend; the app only needs the public App ID.

See OneSignal’s Create message API  for alias targeting and request fields.

Last updated on