How does a group ride in VargLink work without internet in the woods?
Before the ride, the app pre-downloads map tiles for the start area within a 15 km radius (Android — osmdroid, iPhone — MapKit with an OSM layer, website — Leaflet). Phones exchange data directly over Bluetooth at 30–80 m while moving (less in the woods): every 1–2 s each phone broadcasts a beacon (who, where, speed, "stopped" and "SOS" flags), relays other riders' positions along the chain, and when two phones stay close for more than 10 s, they swap chunks of their tracks. SOS is repeated with priority. As soon as any phone gets a connection, it uploads everything it has collected to the server, and duplicates are discarded. Packets are encrypted with the ride key and signed. On Android it works in the background; on iPhone it barely broadcasts in the background — it only receives, or broadcasts with the screen open.