We are using the startSurvey method in the intercom/messenger-js-sdk@0.0.6 package to trigger surveys in the app. After calling this method, it takes a delay of 5-7 seconds to call fetch_active_survey. Is there a way to reduce this delay and make it faster so that the survey is visible within 1-2 seconds in our app?
Hi Lakshya Bhardwajz It’s Mat from the Support Engineering Team
If you are referring to this package there is a newer version of it 0.0.13, can you try to use it and let me know if that does the trick?
https://www.jsdelivr.com/package/npm/@intercom/messenger-js-sdk
Hello Mat,
It’s still taking a few seconds to trigger fetch_active_survey after updating it to 0.0.13. Moreover, I observed that there is a call to this endpoint: https://api-iam.intercom.io/messenger/web/surveys/39045717/fetch which turns out to be a 404. Later, it is called https://api-iam.intercom.io/messenger/web/surveys/fetch_active_survey which gives the data in some milliseconds. It’s the time between these calls that is creating the delay in rendering the surveys in our app.
Hi Lakshya,
I’ve created a conversation in Intercom for you. There might be couple of different reasons behind the delay, let our engineers investigate what is the actual reason behind it.
Reply
Join the Intercom Community 🎉
Already have an account? Login
Login to the community
No account yet? Create an account
Intercom Customers and Employees
Log in with SSOEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.