Agora-Flutter-RTM-SDK
Agora-Flutter-RTM-SDK copied to clipboard
Issue With Sending Invites
So I have an issue when I send an invite and it's accepted. Then when the call is ended If the app is still opened without restarting I call the same person and send another invite it then receives an error code of 3.
could you pls provide the SDK log?
@LichKing-2234 how do I get the log, and this only happens if I try to call invite someone again without restarting the application.
@LichKing-2234 This is what I get
E/AGORA_SDK(23839): cannot open log file for writing: agorartm.log, err=30
I/flutter (23839): Remote Invite error
I/flutter (23839): 3
You should grant the write permission.
@LichKing-2234 I have provided the app with write permission.
You can refer to https://developer.android.com/about/versions/11/privacy/storage, or set the log file to the internal storage.
@LichKing-2234 The issue I'm having is I don't see any docs on setting the log file for rtm
https://docs.agora.io/en/Real-time-Messaging/API%20Reference/RTM_java/classio_1_1agora_1_1rtm_1_1_rtm_client.html#ad44bd79d005d25c68712cc35d16d934b
@LichKing-2234 this is what I get when I set the below
await [Permission.storage].request();
rtmClient = getIt<AgoraRtmClient>();
final direct = await getApplicationDocumentsDirectory();
rtmClient?.setLog(1, 10240, direct.path);
cannot open log file for writing: /sdcard/com.nexttechphilly.socialjawn//data/user/0/com.nexttechphilly.socialjawn/app_flutter, err=21
you should set file name
I tried that also and it still gives the same error. @LichKing-2234
I uninstalled the app and I am trying it again
@LichKing-2234 here are the log files agorartm.log agorartm (1).log
@LichKing-2234 any update on this?
the error means this invitation is time out.
@LichKing-2234 how is it timing out when I don't even get a notice that it was received? How I am testing is I start the apps. Then I sent an invite and video call. The invite is accepted and joins the channel. If the person leaves I have them leave the channel in RTM and log out and log back in with a new token. At this point, if I do not close the app and relaunch it then I receive the timeout error when an invite is sent again no matter if it's a different channel.
@LichKing-2234 anything on this?
Ok, I will test it by your comment.
@LichKing-2234 thanks
@LichKing-2234 any update on this?
I have test it, it works fine? Could you pls make a demo to replicate your issue?