OneSignal Sound
This page covers how to make a push notification play a custom sound when it's sent through the OneSignal Dashboard, instead of the device's default notification sound.
This is the OneSignal-specific half of custom sound support. Before using this page, your app must already have the sound file uploaded via the Dashboard and working with
Sound.play— OneSignal only tells the OS which uploaded sound to play, it does not deliver the sound file itself. See OS Notification Sound for how to upload the file for your Android/iOS app.
Platform support: Android and iOS, both from the OneSignal Dashboard — no JavaScript call is involved on this page. The WebToNative JS OneSignal module (
webtonative/OneSignal) covers player ID/tags/triggers, not sound; sound is set entirely from OneSignal's own composer and settings screens.
How It Works
iOS: the Dashboard's Sound field takes the sound's filename with its extension (e.g.
custom_notify.wav), matching exactly what you uploaded for iOS.Android: the Dashboard's Sound field takes the sound's resource name without extension (e.g.
custom_notify, for a file uploaded ascustom_notify.mp3/.wav), and the sound is tied to whichever Notification Channel you select alongside it.The sound file itself is never uploaded to OneSignal directly — it must already exist in the app (uploaded per OS Notification Sound). These OneSignal composer/settings fields just reference it by name.
Setting Sound on a Single Notification
Log in to the OneSignal Dashboard.
Select the correct App from the app switcher.
Go to Messages → New Push.
Compose the notification (title, body, audience) as usual.
Expand Delivery → Advanced Options (or Platform-specific settings, depending on your dashboard version).
Under iOS Settings:
Locate the Sound field.
Enter the exact sound filename with extension (e.g.
custom_notify.wav).Leave it blank to use the system default sound.
Under Android Settings:
Locate the Sound field.
Enter the resource name without extension (e.g.
custom_notify).Locate the Notification Channel dropdown and select (or create) the channel that has this sound configured — see Notification Channels (Android) below.
Send or schedule the notification.
Notification Channels (Android)
Android notification sounds are tied to a Notification Channel, and a channel's sound cannot be changed after it's created on a user's device — this is an Android OS restriction, not a OneSignal limitation.
In the Dashboard, go to Settings → Notification Channels (or the Android platform settings panel).
If you need to change the sound for an existing channel, create a new channel (e.g.
custom_channel_v2) instead of editing the old one — reusing an existing channel ID with a new sound will not take effect on devices that already have that channel installed.Assign the desired sound resource to the new channel.
Reference this channel from the composer (Setting Sound on a Single Notification, step 7) or set it as the default in app settings.
Verification Checklist
Frequently Asked Questions
Common Pitfalls
Custom sound never plays, default plays instead
Filename entered incorrectly (extension included/excluded incorrectly for the platform)
Works for new installs, not for existing users after a change
Android channel sound is locked in — create a new channel and select it instead of editing the old one