project-avocado
project-avocado copied to clipboard
Search in FAQ crashes
If for some reason the internet is down while we are searching something in FAQ, app crashes instantly
Steps to reproduce the behaviour:
- Go to FAQ
- Let the initial list load
- Turn off your Mobile data/WiFi
- Try searching for something
If we are already into the FAQ section and then net connection is down, then we just exit the FAQ screen. If net is down in the homepage itself, i.e before tapping onto the FAQ card, the whole app crashes and exits
- Device: Moto G5+
- OS: PixelOS(Android 9.0 flavour)
Thing to consider here is that FAQ section has been implemented in Native and integrated into Flutter using Platform channel. Checking for internet availability before sending any request should squash the bug
I take care of it! 👍
Okay, so there are a few places where we need an active internet connection
- FAQ
- Book your appointment
- Mentors
It would be nice if you could check for internet connection everywhere. Also, display an appropriate snackbar notifying the user of the inactive internet connection.
I'd recommend you to rather implement the internet connectivity logic on the flutter side than in native, so that implementing the snackbar is easier for you
Ok, in Mentors section there are actually a button that indicates there is no internet connection. Did you mean we must show the "No internet connection" snackbar before open any section that needs internet or implement the snackbar inside each section? And in case we must show the snackbar inside each screen, in the case of FAQ I have to show it in native.