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

Launch external app from InAppBrowser: ERR_FILE_NOT_FOUND

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.9.4
    • 4.0.0
    • Others
    • Hide

      This issue only needs to be tested in 1 device.

      1. In web as admin, configure the app authentication to use embedded browser and set some text in the forcedurlscheme setting (e.g. "myscheme").
      2. In the app, click to add a new site and put the site URL.
      3. In the embedded browser, enter your username and password and click connect. Check that the app displays an error saying that the site is meant to be used in another app.
      Show
      This issue only needs to be tested in 1 device. In web as admin, configure the app authentication to use embedded browser and set some text in the forcedurlscheme setting (e.g. "myscheme"). In the app, click to add a new site and put the site URL. In the embedded browser, enter your username and password and click connect. Check that the app displays an error saying that the site is meant to be used in another app.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

    Description

      When an external app is launched in InAppBrowser, our app tries to load the previous URL in the IAB so it doesn't display an empty page. This URL is loaded without protocol, and this casues an ERR_FILE_NOT_FOUND error.

      Also, I've seen that in some cases the IAB page itself closes the IAB, so when we try to load the previous page we're actually opening it again. We should check if the IAB is open before loading the previous page.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              22/Apr/22