As per discussed on the wiki https://openedx.atlassian.net/wiki/pages/viewpage.action?pageId=83427604, we need to update the offline mode notifications
Acceptance Criteria:
No Alert
If user is engaging with content that is unaffected by being offline (i.e. when engaging with downloaded content like videos, or filling out a form without submitted it) there will be no indicator that they are offline.
Offline Snackbar
When offline, we will show the snackbar on all screens that are displaying cached data:
Course Outline
Announcements
Handouts
Profile
Discussion Topics
Course Enrollment
User can dismiss the snackbar on Android via swiping.
If a user dismisses the snackbar, and then navigates to another screen with cached data, the bar will appear again.
If a user comes back online, snackbar does not go away until they either tap Reload or navigate to another page.
Offline Full Screen Blocker
If there is no content to show, display full screen blocker
Default to having a Refresh button
Remove Refresh button if user is in airplane mode or if we know for certain that nothing will happen on refresh
Alert Dialog
If the user tries to submit data while offline (i.e. something that would trigger a POST request), they should see an alert dialog telling them they are offline.
In the login activity, when the app detects that we are offline, an alert dialog is displayed that tells the user there is no connection. This can be dismissed either by hitting OK or getting the back button. It also goes away if we have a network connection again.
Wiki link: https://openedx.atlassian.net/wiki/display/MA/Offline+Errors