So I'm facing this now while developing a Ionic2 Application with Firebase.
Let's say I have the following structure:
Home --> Friends* --> Friend Detail --> Friend Info Edit*
Where pages with a * need to fetch data from firebase. So let's say the user lost their connection during the database read or even didn't had internet in first place, what's the best way to prevent strange behaviors and inform the user?
- Do I force the app to go back to the Home and block user from further - interaction?
- Do I show an alert and cancel the database task?
- Do I check first if it has internet and, if don't, inform him and prevent interaction?
- Let them use the app freely but don't make database calls?