Open O-mkar opened 1 year ago
I'm experiencing the same issue. Is this the reason why calling Intercom.registerUnidentifiedUser();
blocks the event loop? I have a button on my app with a click handler that looks like this:
const handleFeedback = async () => {
isLoading.value = true;
try {
Intercom.registerUnidentifiedUser();
Intercom.displayMessenger();
} catch (error) {
console.error("Error displaying Intercom messenger:", error);
} finally {
isLoading.value = false;
}
};
on the button itself I display a loading state using the isLoading
ref, however after clicking the button the whole app freezes and the loading state never shows. I'm guessing this is because the ref is set but Vue is not aware of it's change because Intercom.registerUnidentifiedUser();
is blocking the event loop. I also tried adding await nextTick();
after setting the loading state to true however that did not help either.
Got same issue
Same issue for me...
ff
When calling Intercom.registerUnidentifiedUser() in the application, the Main Thread Checker reports a UI API call on a background thread with the following backtrace:
Expected Behavior: The method Intercom.registerUnidentifiedUser() should not trigger UI API calls on background threads and should be executed on the main thread.
Steps to Reproduce:
Call Intercom.registerUnidentifiedUser() in the application.
Code:
Environment:
iOS version: iOS 16.4.1