How will I know if my app loses connectivity?

With the app, the user will receive the signal loss alarm after 20 minutes of lost connectivity.