Hi guys,
We are building on a custom App which is located in conversation_user_info page in Freshchat.
The problem we are facing is when changing from one view to the other and clicking on a conversation for the first time the app activated gets triggered multiple times.
For example : Assuming we are in the New view and when we are changing view to let’s say All Assigned and click on any one of the conversation in that for the first time the app activated get triggered twice.
Kindly check the code and screenshot provided below.
$(document).ready(function () {
app.initialized().then(function (_client) {
window.client = _client;
console.log("======== App Initialized ========");
client.events.on('app.activated', function () {
console.log("======== App Activated ========");
}, error => console.log(error));
}, err => console.log(err));
});
Do let me know why this happening and what we need to do fix this. Thanks in advance.