Push Notification dynamic Icon


#1

I’m attempting to use Expo push notifications on Android and I was wondering if it was possible to have a dynamic icon for the notification (I know if you build a standalone app the icon will automatically update to be my app’s icon, this is not what I mean).

I was looking to push a notification with an image attached to it as a url. As an example below the green android robot would be the custom image with the app’s icon in the blue circle next to it:


#2

Hi, we don’t support per-notification icons right now. You app’s icon is always displayed as the main icon.


#3

How to display app’s icon as main icon, I configured in notification.icon in app.json but it doesn’t work, it displays just like an empty icon in Android. My settings as in below:

"expo": {
    ....
    "notification": {
      "icon": "./assets/images/icon.png"
    },
    "loading": {
      "icon": "./assets/images/transparent.png",
      "hideExponentText": true,
      "backgroundImage": "./assets/images/splash.png"
    },
   ....

#4

+1 ! I’d like to be able to set per-notification icons. How could I do it now?


#5

Still no update on this?


#6

From app.json configuration it looks like you can only define a single icon for all push notifications.