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

Bug in iOS 18+ due to deprecation in cordova-plugin-inappbrowser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 4.5.0
    • Cordova
    • Hide

      We weren't able to reproduce the problem mentioned in the issue, we updated the plugin just to have the latest changes. So this issue will be tested during our pre-release QA process, no specific testing needed here.

      Show
      We weren't able to reproduce the problem mentioned in the issue, we updated the plugin just to have the latest changes. So this issue will be tested during our pre-release QA process, no specific testing needed here.
    • MOODLE_405_STABLE
    • Moodle Apps - 2024 i4.3, Moodle Apps - 2025 i1

      Hi there!
      Since the latest iOS 18 versions, the use of `UIApplication.openURL(` has been deprecated, so when trying to open a link in an external browser (for example, using `window. open(url, '_system')`) the app does nothing and in the XCode console you see the message "The caller of uiapplication.openurl(needs to migrate to the non-deprecated uiapplication.open(_:options:completionhandler. force returning false (no).".
      While investigating this I found that the Moodle version of the cordova-plugin-inappbrowser plugin is using this deprecated version (https://github.com/moodlemobile/cordova-plugin-inappbrowser/blob/master/src/ios/CDVWKInAppBrowser.m#L360-L366), so it causes the issue. In the original version of the plugin this is already fixed in version 6.0.0 (https://github.com/apache/cordova-plugin-inappbrowser/blob/rel/6.0.0/src/ios/CDVWKInAppBrowser.m#L297-L304).
      I create this issue to see if it is possible to bring this fix to the Moodle version of the plugin. Additionally, I am curious that the latest version of the Moodle app published in the App Store does not have this problem, is it compiled with a specific swift version or something special?
      Thanks in advance!

       

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

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days, 7 hours, 13 minutes
                2d 7h 13m

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