Agora-Flutter-RTM-SDK icon indicating copy to clipboard operation
Agora-Flutter-RTM-SDK copied to clipboard

Issue With Sending Invites

Open rlee1990 opened this issue 2 years ago • 21 comments

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.

rlee1990 avatar Oct 10 '21 17:10 rlee1990

could you pls provide the SDK log?

LichKing-2234 avatar Oct 11 '21 01:10 LichKing-2234

@LichKing-2234 how do I get the log, and this only happens if I try to call invite someone again without restarting the application.

rlee1990 avatar Oct 11 '21 01:10 rlee1990

@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

rlee1990 avatar Oct 12 '21 18:10 rlee1990

You should grant the write permission.

LichKing-2234 avatar Oct 13 '21 02:10 LichKing-2234

@LichKing-2234 I have provided the app with write permission.

rlee1990 avatar Oct 14 '21 01:10 rlee1990

You can refer to https://developer.android.com/about/versions/11/privacy/storage, or set the log file to the internal storage.

LichKing-2234 avatar Oct 14 '21 02:10 LichKing-2234

@LichKing-2234 The issue I'm having is I don't see any docs on setting the log file for rtm

rlee1990 avatar Oct 14 '21 03:10 rlee1990

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 avatar Oct 14 '21 03:10 LichKing-2234

@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

rlee1990 avatar Oct 14 '21 14:10 rlee1990

you should set file name

LichKing-2234 avatar Oct 14 '21 14:10 LichKing-2234

I tried that also and it still gives the same error. @LichKing-2234

rlee1990 avatar Oct 14 '21 14:10 rlee1990

I uninstalled the app and I am trying it again

rlee1990 avatar Oct 14 '21 15:10 rlee1990

@LichKing-2234 here are the log files agorartm.log agorartm (1).log

rlee1990 avatar Oct 14 '21 15:10 rlee1990

@LichKing-2234 any update on this?

rlee1990 avatar Oct 18 '21 20:10 rlee1990

the error means this invitation is time out.

LichKing-2234 avatar Oct 19 '21 15:10 LichKing-2234

@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.

rlee1990 avatar Oct 19 '21 16:10 rlee1990

@LichKing-2234 anything on this?

rlee1990 avatar Oct 20 '21 13:10 rlee1990

Ok, I will test it by your comment.

LichKing-2234 avatar Oct 21 '21 02:10 LichKing-2234

@LichKing-2234 thanks

rlee1990 avatar Oct 21 '21 13:10 rlee1990

@LichKing-2234 any update on this?

rlee1990 avatar Oct 26 '21 00:10 rlee1990

I have test it, it works fine? Could you pls make a demo to replicate your issue?

LichKing-2234 avatar Oct 26 '21 08:10 LichKing-2234