figueduff
figueduff

Reputation: 45

how do i add icon / badge in push notification (fcm) from a cloud function js firebase - Angular

Notifications are sent correctly but I don't know how to modify this ... I tried a url to a 32x32 image in storage (firebase) and it didn't work either. From a path to assets and neither ...

enter image description here

cloud functions

   const payload = {
      notification: {
        title: notificacion.titulo,
 badge: '../src/assets/icons/dragon.png', //?????????
        icon: notificacion.photoURL,
      },
    };

Upvotes: 1

Views: 9031

Answers (1)

Victor Eronmosele
Victor Eronmosele

Reputation: 7696

From Notification payload support, badge is not one of the supported notification payload keys for web.

Upvotes: 2

Related Questions