Add image to inapp notification message
Hi all
how can i add image in template for in app notification
basically i want to add user image every time notification is sent
the image url will come form api call
I tried some thing like below but it didnt worked
<img src="{{imageUrl}}" alt="Product Image" width="300" />
11 Replies
@son
Are you using
@novu/react
package?i am trying to create n eusing temaplete

this section i want every message to have user image
I have url image url
not not sure how to configure img tag
or can i have custom url in avatar?
@son
we don’t support custom user avatar in in-app editor
ok is there a way i can send notification to user and show image in notification like in faceboon comeone sends you notification it shoes person image and messge
@son, you just advanced to level 1!
any update
@son
Use these steps to show user's avatar in in-app messages
1. create subscriber1 in novu and set the avatar field of this subscriber as a valid image url
2. create subscriber2 in novu
3. create the workflow, add in-app step and choose user avatar option.
4. trigger the workflow with in-app step to subscriber2 having subscriber1 as actor
@son
Following up on this
hi
@son
Let me know if you need help