Set up Android notification categories (channels) in OneSignal to improve user control and customization of push notifications.
Example of an app's notification categories on the device
Where to add Android categories in OneSignal
alert_beep
(not alert_beep.wav
)0, 300, 500, 300
β Wait 0ms, vibrate 300ms, pause 500ms, vibrate 300ms.FF0000FF
for blue)android_channel_id
in the Create message API request.
Find the Channel ID in the Android Category setup screen
existing_android_channel_id
instead.
Application
class, not an Activity
. See Android SDK Setup.setBypassDnd
on categories. To override DND, create your own channel programmatically and enable this setting. See setBypassDnd.
existing_android_channel_id
in your push API requests.