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

iframe containing a pdf doesn't display in moodle mobile app

XMLWordPrintable

    • Hide

      This issue needs to be tested both in Android and iOS (1 device of each, no need to test in multiple devices).

      1. In Moodle as admin, configure the following:
        1. A page containing an iframe pointing to a PDF file included in the same page. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded PDF (hosted in same page) 
        2. A page containing an iframe pointing to a PDF file in an external site. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded PDF (external).
        3. A page containing an iframe pointing to any website (not a PDF file), and include data-open-external="true" in the iframe. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded resource displaying embedded PDF.
        4. In Site admin > Mobile features > Custom menu items, add an item pointing to an online PDF file. There is one already added in our master site, called "PDF embedded".
      2. In the app, open the page in point 1.1. Check that you see a button saying "Open PDF file".
      3. Click the button. Check that the PDF file is opened in an external app (Android) or with a viewer on top of the app (iOS).
      4. Do the same with the page in point 1.2, the behaviour should be the same.
      5. Now open the page in point 1.3. Check that you see a button saying "Open in browser".
      6. Click the button. Check that the browser is opened with the page that should have been embedded.
      7. Now go to More and open the menu item in point 1.4. Check that you see a button saying "Open PDF file".
      8. Click the button. Check that the PDF file is opened in an external app (Android) or with a viewer on top of the app (iOS).
      9. Now go offline and check that you can still open the PDFs in points 1.1, 1.2 and 1.4 (the ones where the PDF was embedded directly), but you get an error message if you try to open the iframe in point 1.3. Please notice that PDFs in 1.2 and 1.4 can only be opened in offline if they were previously opened in online, while the PDF in 1.1 can be opened in offline as long as the page has been downloaded (because the file is part of the page, it's not an external file).
      Show
      This issue needs to be tested both in Android and iOS (1 device of each, no need to test in multiple devices). In Moodle as admin, configure the following: A page containing an iframe pointing to a PDF file included in the same page. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded PDF (hosted in same page)  A page containing an iframe pointing to a PDF file in an external site. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded PDF (external). A page containing an iframe pointing to any website (not a PDF file), and include data-open-external="true" in the iframe. There is one already created in master site > MM Dev Course > Resource: Page > Page with embedded resource displaying embedded PDF. In Site admin > Mobile features > Custom menu items, add an item pointing to an online PDF file. There is one already added in our master site, called "PDF embedded". In the app, open the page in point 1.1. Check that you see a button saying "Open PDF file". Click the button. Check that the PDF file is opened in an external app (Android) or with a viewer on top of the app (iOS). Do the same with the page in point 1.2, the behaviour should be the same. Now open the page in point 1.3. Check that you see a button saying "Open in browser". Click the button. Check that the browser is opened with the page that should have been embedded. Now go to More and open the menu item in point 1.4. Check that you see a button saying "Open PDF file". Click the button. Check that the PDF file is opened in an external app (Android) or with a viewer on top of the app (iOS). Now go offline and check that you can still open the PDFs in points 1.1, 1.2 and 1.4 (the ones where the PDF was embedded directly), but you get an error message if you try to open the iframe in point 1.3. Please notice that PDFs in 1.2 and 1.4 can only be opened in offline if they were previously opened in online, while the PDF in 1.1 can be opened in offline as long as the page has been downloaded (because the file is part of the page, it's not an external file).
    • MOODLE_404_STABLE
    • Moodle Apps - 2024 i1, Moodle Apps - 2024 i1.1

      I have researched other issues regarding iframes but cannot find the answer to the problem I am having.  We want to be able to display a simple pdf in an iframe on a Moodle Page. It works on the desktop as advertised, but when viewed as a student on mobile app (android), nothing displays.   Any suggestions on what this issue may be?  Thanks

      Shaping document:

      https://docs.google.com/document/d/1afc-VyzVRiGRsG3VVaAaDfppIbcGM_Vf2hwlrpZR1ps

            dpalou Dani Palou
            Hwill Hywel Williams
            Pau Ferrer Pau Ferrer
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.