Hi @yusrakhatri,
I tried making simple request as follows
/**
Please ignore async await used in this code snippet.Assume them to be .then() . That is for future releases of fdk. :)
*/
document.onreadystatechange = function () {
if (document.readyState === 'interactive') renderApp();
async function renderApp() {
var _client = await app.initialized();
window['client'] = _client;
client.events.on('app.activated', onAppActivate);
}
};
async function onAppActivate() {
var btn = document.querySelector('.btn-open');
btn.addEventListener('click', openModal);
let { response } = await client.request.get('https://httpbin.org/uuid');
console.log(response);
}
I was able to get an response as expected. Can you please try again and confirm that part.
Coming to the product events part, I defined onTaskCreate
, onTaskUpdate
or even onContactCreate
weren’t invoked when I was trying to reproduce the issue. I decided to give it an ~40 min time to see if they are invoked. I will keep you posted on top of it.