Answered

WebHook triggers only when user opened the application

  • 6 September 2023
  • 2 replies
  • 76 views

Hi there!
I subscribed on content_stat.post event, but the webhook triggers only when user open the intercom webpage.
We are using embbed webComponent in our application and would like to notify user about it before he opened the web page (because he must do it manually), we want to open it programmatically - when new post are created - open this page immediately, but we discovered that webhook triggers only after opening webpage by user. How can i detect that new post are created for user, before he opened page? Ideally via webhook, or at least API?

Thanks!

icon

Best answer by Racheal 12 September 2023, 02:25

View original

2 replies

Userlevel 4
Badge +5

Hey @Dmitrii Sablin Racheal from the support engineer team here👋 

 

I believe we pulled up on this one as well but incase another customer comes across this, the content_stat.post webhook is triggered when a user receives a Post, so it is expected that it will only trigger when they land on your page (and therefore are delivered the Post). We do not have a webhook that would capture a teammate setting an outbound message live at the moment. If you are looking to notify your users when there is a new message for them without them logging in, you could consider adding a push notification to the message:

Screenshot+2023-09-08+at+9.41.21+AM.png?expires=1694480021&signature=6c37876f6d2873b1121a8ed5a51d4bcde316cef7222958b7b3aec7bb2589c895&resize=516x

@Racheal thanks Racheal! But we don’t use mobile) we use emmbed webview component, only on desktop application and we are not able to notify - but this exactly what we want to reach out :)

So, maybe there is any workaround, via API? Like /{user.id}/posts/ or something like that? so i can manually fetch these user events from api (since its triggers only when user logged in) I need an any workaround to handle event “Message (for example POST) has been created/live/”) before user logged in, please let me know if it’s possible at least in theory :)

P.S. I Also don’t see the button “add push notification mobile”) there is no button in the UI

 



Thanks!

Reply