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

Support custom URL schemes in InAppBrowser

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.2
    • 3.1.3
    • Others
    • 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.
    • MOODLE_31_STABLE
    • MOODLE_32_STABLE
    • Moodle Mobile 3.2

      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.

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

              Created:
              Updated:
              Resolved:

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