Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-1089

Service or utility to check addons availability/dependencies

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide
      1. Check that clicking on a push notification still redirects you to the right state.

      If you don't have push notifications, you can manually check that it works:

      1. Open the console.
      2. Execute this line:

        var $mmAddonManager = angular.element(document.querySelector('[ng-app]')).injector().get('$mmAddonManager')

      3. Now you can use $mmAddonManager from console. Try to get a service that exists and another that doesn't and check that the behavior is the expected.
      Show
      Check that clicking on a push notification still redirects you to the right state. If you don't have push notifications, you can manually check that it works: Open the console. Execute this line: var $mmAddonManager = angular.element(document.querySelector('[ng-app]')).injector().get('$mmAddonManager') Now you can use $mmAddonManager from console. Try to get a service that exists and another that doesn't and check that the behavior is the expected.
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      I created this issue because in MOBILE-827 we have a case of add-ons possible dependencies.

      I don't like how it's implemented because it depends on injectors and exceptions

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Jul/15