AgoraIO/agora-react-native-rtm

Keep getting "No Callback Found" error on iOS Simulator

hdcaruth opened this issue · 7 comments

This is the code in my componentWillUnmount() method:

  async componentWillUnmount() {
    console.log("Unmounting");

    await this.state.rtmEngine.leaveChannel("testChatChannel").catch(error => console.log("Error leaving", error.code));;
    await this.state.rtmEngine.logout().catch(error => console.log("Error logging out", error.code));

    console.log("Left channel...");
  }

I intermittently get the following error (see uploaded image):

Screen Shot 2021-06-18 at 1 24 49 PM

What's going on here?

Sorry for the late reply, is this issue still exist?

Hi der, I am also facing the similar error while try to using login method of rtm (only in ios android is fine).
Simulator Screen Shot - iPhone 11 - 2021-09-14 at 16 28 00

@LichKing-2234 - I'm also facing the same problem with the latest version of RTM 1.4.8, Can anyone from maintainers or you share the fix, as iOS 15 is coming out today 14 Sept

@hdcaruth - Any luck in fixing this?

have you followed our example?

While allegedly deprecated, you may have luck with calling the destroyClient(..)fn on the RTM Engine instance. I would say that is worth a shot.

@LichKing-2234
this is still in v1.5.1, but this time with leaveChannel.
No callback found with cbID 35777 and callID 17888 for AgoraRTM.leaveChannel