FAQ

Could not invoke HMSManager.build

error

This error generally appears in development mode due to hot reloading. When the peer has joined the room and then the app is hot reloaded from the terminal, the peer is still in the room and when he tries to join back this error occurs. To make sure this error does not occur you have to remove your peer from the room.

  • To avoid you can add instance.leave() function on the unmounting of the Home Screen, so whenever the app is hot reloaded which leads to unmounting of the Home screen the leave function is called.
const onLeavePress = async () => { await instance?.leave() .then(d => console.log('Leave Success: ', d)) .catch(e => console.log('Leave Error: ', e)); }; useEffect(() => { return () => { onLeavePress(); }; }, []);
  • If this error occurred you can either join through web app and remove the peer which is still present due to hot reloading or you can kill the app and rebuild it.