Im just spitballing here but why make a new app? Can't you implement a custom interface for a mesh network? (Like reticulum)
The benefit would be that you won't have reimplement messaging apps, encryption stuff etc. it might be a bit slow though but i guess that is a good tradeoff to make