Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-3886

Android app can no longer connect to HTTP sites

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.0.0
    • 3.9.5
    • Android
    • Hide

      This issue needs to be tested in Android only.

      1. In the app, click to add a new site.
      2. Enter a HTTP site. Check that you successfully reach the credentials screen.
      3. Enter your credentials. Check that you successfully enter the site.
      Show
      This issue needs to be tested in Android only. In the app, click to add a new site. Enter a HTTP site. Check that you successfully reach the credentials screen. Enter your credentials. Check that you successfully enter the site.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

    Description

      The latest development version can no longer connect to HTTP sites, it show this error:

      There was an error with the request: Cleartext HTTP traffic to {URL} not permitted

      This doesn't happen with master branch, I don't know what changed this. Maybe it's the AndroidX change?

      IMO this isn't supposed to happen if android:usesCleartextTraffic="true" is set, but it still happens. Using a custom network_security_config.xml does seem to fix it.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22