AgoraIO / agora-react-native-rtm

React Native around the Agora RTM SDKs for Android and iOS agora
https://www.agora.io/en/
MIT License
63 stars 36 forks source link

Keep getting "No Callback Found" error on iOS Simulator #42

Open hdcaruth opened 3 years ago

hdcaruth commented 3 years ago

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?

LichKing-2234 commented 3 years ago

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

rajaneeshBridgera commented 3 years ago

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

Sach-SPF commented 3 years ago

@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

Sach-SPF commented 3 years ago

@hdcaruth - Any luck in fixing this?

LichKing-2234 commented 2 years ago

have you followed our example?

hdcaruth commented 2 years ago

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.

jafar-jabr commented 1 year ago

@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