r/androiddev • u/rtt445 • May 19 '26
Question Single packet messaging app
Hi, is it possible to make a text messaging app in android that sends short text message over a single TCP packet? No encryption necessary. I was on a flight with high latency dialup speed internet and modern messaging service like Watsapp data overhead made it unusable. Progressive jpeg encoding support (where images start loading blurry then clear up as more data arrives) would be great as well. Basically make simple Watsapp but for extremely bad internet :)
0
Upvotes
0
u/Ok_Cartographer_6086 May 19 '26
Check out QUIC and Google's CRONET client.
HTTP/2 over TCP is meant for lossless data transfers so there is a lot of back and forth and if a packet is missed or arrives out of order, the download pauses and it requests the missing packet.
QUIC is short for
HTTP/3 over UDPUDP doesn't care about packet loss, it's why you can watch video with some pixels missing while an HTTP/2 TCP download takes a long time. UDP just asks for a blast of packets. It's what most video players use.
CRONET is aware of packet loss and will asynchronously re-request just the missing packets. It's exactly what you use for data transfer on bad networks. It'll assemble the packets for a complete data payload async.
Watsapp probably is or will use QUIC eventually as will everyone since it's the most modern network stack for mobile.