There were actually a couple of apps that allowed you do this using Bluetooth.
A previous app was called Firechat – [https://en.wikipedia.org/wiki/FireChat](https://en.wikipedia.org/wiki/FireChat)
another one was designated for commuters for on the London tube for when there wasn’t Internet connectivity in the tunnels – [https://medium.com/@tubechat_app/introduction-to-tubechat-9e635b121ef6](https://medium.com/@tubechat_app/introduction-to-tubechat-9e635b121ef6)
There is one app that still seems to be available called Bridgefy – [iOS](https://apps.apple.com/us/app/bridgefy-offline-messages/id975776347) [Android](https://play.google.com/store/apps/details?id=me.bridgefy.main&hl=en_NZ&gl=US)
Latest Answers