twilio / twilio-video-app-android

A collaboration application built with the Twilio Video Android SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Any way to confirm datatrack send success?

jam0cam opened this issue · comments

Description

As stated in the twilio docs delivery of DataTrack messages is not guaranteed

Is there any way to check for confirmation? What are your thoughts on using datatrack to implement sending of messages between participants if there is no way to guarantee the receipt of these messages?

Do you have any guidelines as to what are some appropriate values to set for maxPacketLifeTime and maxRetransmits?

Thank you

Do you have any guidelines as to what are some appropriate values to set for maxPacketLifeTime and maxRetransmits?

Hi @jam0cam ! Great question. I'll check with my team on the optimal configuration for reliable DataTrack messages and get back to you.

What are your thoughts on using datatrack to implement sending of messages between participants if there is no way to guarantee the receipt of these messages?

I recommend using the Twilio Conversations SDK for this use case as it provides a reliable mechanism for exchanging messages between participants. The SDK can also persist conversations so that they can be referenced at a later time. In fact, we are working on adding a chat feature that uses the Conversations SDK to this application so developers can see how to do the same in their applications. Feel free to keep an eye on the feature/conversations branch to stay up to date on our progress.

Closing this one for now since there is no recent activity.

In your previous comment, you said you were going to check with your team and get back to me.

Ah yes good point. I'll reach back out to the team and try to get a response on this one. Thanks!

@jam0cam This is definitely a bit confusing after reading that documentation. So you essentially ignore these values when using data tracks if you would like them to be reliable. There is an isReliable getter on the DataTrack interface that will tell you whether or not the data track is reliable and is true by default without setting maxPacketLifeTime and maxRetransmits.

oh, you're right about that. Thanks!