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
221 stars 52 forks source link

message never sent #244

Closed yulman19 closed 2 years ago

yulman19 commented 2 years ago

Sometimes, I type a message and I click send and it stays in a "sending" status, but is actually never sent; it stays visible as "sending". I have to copy then delete it and resend again. Seen the behavior on Android 11 and 12.

xenophane commented 2 years ago

This happens occasionally to me as well.

michaelkourlas commented 2 years ago

There was a bug that could result in message send attempts being lost if a previous one failed, but it was fixed in 0.6.22.

When you send a message, it gets enqueued as an expedited work request using WorkManager. However, Android enforces execution quotas, so it may be downgrading the work request to a non-expedited request and deferring it for later.

yulman19 commented 2 years ago

Not to contradict you but I'm always on the latest version and I believe it still happens. thanks for your work.

michaelkourlas commented 2 years ago

Oh, I believe you. I was theorizing that this may be the result of Android de-prioritizing the send message request. It could also be a real bug, but unfortunately without a repro recipe it's tough to investigate and fix. I don't really use the app myself anymore, and haven't for many years -- I just maintain it.

michaelkourlas commented 2 years ago

If you can provide a consistent repro recipe, let me know and I'll see if I can repro on my device.

yulman19 commented 2 years ago

you're the man, seriously, maintaining something you don't use is appreciated devotion.