michaelkourlas / voipms-sms-client

Popular Android messaging app for VoIP.ms, a Canadian VoIP provider
https://play.google.com/store/apps/details?id=net.kourlas.voipms_sms
Apache License 2.0
216 stars 51 forks source link

Slow Response When Sending Message #227

Closed RithHugDo closed 3 years ago

RithHugDo commented 3 years ago

Since the 0.6.14 update I wanted to chime in on something I've noticed. I saw one of the recent Google play reviews about SMS not getting sent and part of the message being kept as a draft. I've had the same behavior since the update to 0.6.14 and it seems to happen if you hit send from the app and then navigate away from the conversation.

It's taking a long time for the sent message to show in the conversation (several seconds) from when you hit send until it shows up. I can't remember but it seems like it used to post to the conversation immediately but then it might take several seconds to actually send?

xenophane commented 3 years ago

Seeing similar behaviour here on Android 11/Pixel 3 XL with 0.6.14. I had a couple of messages take minutes though, not seconds, to send and appear properly in the conversation.

Navigating away from the conversation, I could see part of the first message appear as a draft in the contact/conversation list. After some time this seemed to repeat for the second message I had sent as well. Perhaps sending two messages in quick succession was enough to really exacerbate whatever the underlying issue is.

michaelkourlas commented 3 years ago

I'm actively investigating this.

yulman19 commented 3 years ago

same here with android 11 on a Pixel 3a

hdlineage commented 3 years ago

Same problem here on LG V30 android 9

kevinklaam commented 3 years ago

on s10e android 11, messages will send after couple seconds or it will never end up sending or messages double send after an 10+mins, using voipms web interface doesnt repro the issue

michaelkourlas commented 3 years ago

I expect this to be fixed in the next release.

michaelkourlas commented 3 years ago

Nope, not fixed yet.

hdlineage commented 3 years ago

Upgraded to 0.6.18. Message sent will now appear instantly, however, prior messages sent by others will disappear unless you leave the conversation and re-enter again. Messages sent by yourself are still visible.

michaelkourlas commented 3 years ago

With a large database, I can reproduce the delay between when the "send" button is pressed and when it appears in the list. I've reimplemented the database using Room, and I think this has reduced the delay somewhat. I'm not sure what else I can do.

Upgraded to 0.6.18. Message sent will now appear instantly, however, prior messages sent by others will disappear unless you leave the conversation and re-enter again. Messages sent by yourself are still visible.

I can't reproduce this at all.