Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3803 Moodle App performance improvements for 4.0
  3. MOBILE-2282

App takes a lot to start if site is down or unreachable

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Waiting for testing
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: DEV backlog
    • Fix Version/s: None
    • Component/s: Log in screen
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      IMO it's easier if this issue is tested by a developer.

      1. Modify a local Moodle site to make all WebService and AJAX calls take a few seconds to answer (e.g. 10 seconds). You need to change the endpoints: 
        /webservice/rest/server.php, /lib/ajax/service-nologin.php and /lib/ajax/service.php.
      2. In the app, add this site. It will take a while to load, the requests are blocking when adding a new site.
      3. Go to More > Preferences and clear the storage (to make sure there's no cached data).
      4. Kill the app.
      5. In the Moodle site, go to Site administration > Mobile app >Mobile authentication and set minimumversion to 4.0.
      6. Start the app again. Check that the app opens the main menu page fast (you aren't stuck in a grey page for 10+ seconds), but the main menu page will stay loading because it needs to fetch the main menu handlers. This will probably improve in the issue about cache priority review.
      7. Check that after 10 seconds aprox you see a warning saying that you need to update the app.
      8. Click any of the buttons. Check that the app logs you out after clicking the button.
      Show
      This issue only needs to be tested in 1 device. IMO it's easier if this issue is tested by a developer. Modify a local Moodle site to make all WebService and AJAX calls take a few seconds to answer (e.g. 10 seconds). You need to change the endpoints:  /webservice/rest/server.php, /lib/ajax/service-nologin.php and /lib/ajax/service.php. In the app, add this site. It will take a while to load, the requests are blocking when adding a new site. Go to More > Preferences and clear the storage (to make sure there's no cached data). Kill the app. In the Moodle site, go to Site administration > Mobile app >Mobile authentication and set minimumversion to 4.0. Start the app again. Check that the app opens the main menu page fast (you aren't stuck in a grey page for 10+ seconds), but the main menu page will stay loading because it needs to fetch the main menu handlers. This will probably improve in the issue about cache priority review. Check that after 10 seconds aprox you see a warning saying that you need to update the app. Click any of the buttons. Check that the app logs you out after clicking the button.
    • Pull Master Branch:
    • Sprint:
      Moodle App 4.0

      Description

      When the last site you accessed is down or unreachable (e.g. a site only available from a local network), the app can take a lot to start. We should improve this, so if a site is taking too much to load we should still open the app with cached data.

      Also, it seems that in some cases the app doesn't start at all (waiting more than 2 minutes and nothing happened).

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Noel De Martin Noel De Martin
            Integrator:
            Noel De Martin Noel De Martin
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: