How does this work? Broadcast a really strong WiFi signal?
An exception was FireChat, which built a mesh network using the Bluetooh & Wifi-based connectivity API provided by iOS called "Multipeer Connectivity Framework", so you could talk to someone far away as long as there were other users between you, which served as routers.
You could also break things down by geofence, but that would work better for a city chat since there would need to be overlapping fences otherwise you could be next to someone and not see their messages.
There are other ways to do it, but if you are going to use Internet connectivity, that's the simplest I believe.