-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.5.0
-
-
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!