iOS - Offline Mode - Overlay notification updates

Description

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

  1. When offline, we will show the snackbar on all screens that are displaying cached data:

    • Course Outline

    • Announcements

    • Handouts

    • Profile

    • Discussion Topics

    • Course Enrollment

  2. User can dismiss the snackbar on Android via swiping.

  3. If a user dismisses the snackbar, and then navigates to another screen with cached data, the bar will appear again.

  4. 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

  1. If there is no content to show, display full screen blocker

  2. 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

  1. 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

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Status

Assignee

Saeed Bashir

Reporter

Mirza Mubashar Baig

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Story Points

5

Components

Sprint

None

Priority

Unset
Configure