This was a common thing that was developed for the international protests after Arab Spring, which would frequently have their Internet shut down as a State tactic to prevent communication amongst protestors.
Mesh net chat apps like FireChat were born in response