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

Support custom URL schemes in InAppBrowser

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.2
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      We don't have any real case to test this so we'll have to simulate it.

      1. Install the app in an Android device. You also need to install DCULoop and Facebook apps from the Play Store.
      2. Launch the Moodle Mobile app.
      3. In your computer, open the Chrome inspector to inspect the app.
      4. Go to Console and execute these lines:

        var $mmUtil = angular.element(document.querySelector('[ng-app]')).injector().get('$mmUtil');
        $mmUtil.openInApp('http://prototype.moodle.net/mobile/moodle31/course/view.php?id=4')
        

        This should open the InAppBrowser pointing to prototype 3.1.

      5. Login in prototype 3.1 in the InAppBrowser. You should be redirected to "MoodleMobile Developer Testing Course".
      6. In the General section, click the link "Empty custom URL Scheme to dculoop app". Check that the DCULoop app is opened.
      7. Close the DCULoop app using Android's back button and check that you're in the same course as before in InAppBrowser.
      8. Now click the link "Empty custom URL Scheme to Facebook app". Check that the Facebook app is opened.
      Show
      We don't have any real case to test this so we'll have to simulate it. Install the app in an Android device. You also need to install DCULoop and Facebook apps from the Play Store. Launch the Moodle Mobile app. In your computer, open the Chrome inspector to inspect the app. Go to Console and execute these lines: var $mmUtil = angular.element(document.querySelector('[ng-app]')).injector().get('$mmUtil'); $mmUtil.openInApp('http://prototype.moodle.net/mobile/moodle31/course/view.php?id=4') This should open the InAppBrowser pointing to prototype 3.1. Login in prototype 3.1 in the InAppBrowser . You should be redirected to "MoodleMobile Developer Testing Course". In the General section, click the link " Empty custom URL Scheme to dculoop app ". Check that the DCULoop app is opened. Close the DCULoop app using Android's back button and check that you're in the same course as before in InAppBrowser . Now click the link " Empty custom URL Scheme to Facebook app ". Check that the Facebook app is opened.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2

      Description

      When using InAppBrowser (e.g. LTI), if a user clicks in a link with a custom URL scheme it doesn't work. This was reported via e-mail and it seems it only fails in Android.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              dpalou Dani Palou
              Peer reviewer:
              Pau Ferrer
              Integrator:
              Juan Leyva
              Tester:
              Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                12/Dec/16