Web Push Notification Icons & Images
Customizing Web Push notifications with your app icons, colors, and style.
Web push notifications support icon, image, and badge customization options.
Setting the Icon, Image, and Badge
You can add the default web icon in step 2 of the Web Push Setup configuration and step 5 of the Safari Web Push Setup in the Dashboard.


When Sending Push Messages, you can set the icon, image, and badge here:


Sending from API, use chrome_web_icon
, chrome_web_image
, and chrome_web_badge
parameters
Icon
The icon displays to the side of the notification's title and message. In this example, it is the OneSignal logo:




Icon Requirements
Option | Details |
---|---|
Color |
|
Resolution | Recommended: |
Filetype | `jpg`, `png`, `gif`, `webp`, `ico`, `cur`, `bmp` Not supported: `svg` or animated gifs (will show first gif frame only) |
Image
Chrome on Windows Desktop and Android supports displaying a large image below the notification's title and message.
- Chrome removed image support for MacOS in Chrome 59.


Chrome on Android | Chrome on Windows | |
---|---|---|
Resolution | Recommendations: 2:1 aspect ratio landscape Max Width: 2000 pixels Common sizes: | Recommendations: 2:1 aspect ratio landscape Max Width: 2000 pixels Common sizes: |
Filetype | `jpg`, `png`, `gif`, `webp`, `ico`, `cur`, `bmp` Not supported: `svg` or animated gifs (will show first gif frame only) | `jpg`, `png`, `gif`, `webp`, `ico`, `cur`, `bmp` Not supported: `svg` or animated gifs (will show first gif frame only) |
Sliding Image on Android (too many notifications in tray)
When there are too many notifications in the tray, your image may not be shown at first. The notification has to be "scrolled down" to see the image:


Badge
Chrome on Android
For Chrome 53+ on Android 6.0+, the badge replaces the Chrome browser icon that appears on the notification tray and above the title. In this example, a custom badge for the app replaces the Chrome browser icon:




Badge Requirements
Color | `Alpha` channel only Not supported: RGB channels. Badges use alpha channels because they must appear on both light and dark backgrounds. |
---|---|
Resolution |
|
Filetype | `png`, `gif`, `webp`, `ico`, `cur`, `bmp` Not supported: `svg` or animated gifs (will show first gif frame only) Must use an HTTPS URL |
Here's an example badge icon of our OneSignal logo that uses only the alpha channel.
Updated over 1 year ago