RTM
RTM copied to clipboard
SDK CRASH
I got SDK crash with following LOG
-[AgoraRtmMessage setServerReceivedTs:]: unrecognized selector sent to instance 0x28118ec00 2019-11-07 12:32:06.741795+0530 AgoraARKit[836:404081] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AgoraRtmMessage setServerReceivedTs:]: unrecognized selector sent to instance 0x28118ec00' *** First throw call stack: (0x19bfc980c 0x19bcf1fa4 0x19becd36c 0x19bfcdc88 0x19bfcfa6c 0x104c7fe70 0x104d52e2c 0x104d35828 0x104d35228 0x104d35394 0x19bce61d0 0x19bce9ae0) libc++abi.dylib: terminating with uncaught exception of type NSException
can you show the code within your onMessageReceivedFromPeer callback?
@plutoless I have not implemented any of messaging delegate , Because I don't need them. I have just used the callkit methods
which version of sdk you are using? latest? which demo are you running with?
@plutoless I have integrated this in my project. I am using latest SDK downloaded from agora website.
There are other issues too I have encounter. as per agora RTM docs you can create multiple instances.
So I have created helper classes according to that. but Now it is not working as expected Please check this with other scenarios like create instance in appdelegate to handle the call invite using VOIP push notification.
Here is the flow of my application where invite not received.
- AppDelegate has one instance which will used to handle call invite when push recv.
- One instance in SendCallVC which viewcontroller presented by RootViewController , SendCallVC will send the invite.
Now Scenario is
Device 1 --> SendCallVC --> [ LOGIN--> SEND PUSH & SEND INVITE] Device 2 --> Receive Push --> [LOGIN --> WAIT FOR INVITE RECV].
This is working fine. But issue occurs when after sending call from Device1 --> Device2, I send call from Device 2--> Device1 , and again Device1 ---> Device2 then Device2 didn't recv any invite and from Device 1 I got message that user is offline on error code.
Please suggest. Let me know if you need any code samples