Moodle Mobile webview Engine

Re: Moodle Mobile webview Engine

by Dani Palou -
Number of replies: 7
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Hi Claudio,

yes, we are aware of that, thanks. Here's a link where the Ionic team explains a bit about the warning:

https://ionicframework.com/blog/understanding-itms-90809-uiwebview-api-deprecation/

Cheers,
Dani
In reply to Dani Palou

Re: Moodle Mobile webview Engine

by Claudio ancooor -

Dear Team,

during submission of my customized version of MM, I received the following message by Apple:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs starting from December 2020.

See https://developer.apple.com/documentation/uikit/uiwebview for more information.


I also find online the following information:

App that use  UIWebView will not be accepted in new app submissions as of April 2020 and will not be accepted in app update submissions as of Dec 2020.


Do you have any plan to fix the problem?

Thank you

Best Regards

Claudio



In reply to Claudio ancooor

Re: Moodle Mobile webview Engine

by Sreenu Vasulu -

Hello Team,

I tried to upload my Ios App to app store and i'm facing the same issue.
Is there any update regarding this issue ?

In reply to Sreenu Vasulu

Re: Moodle Mobile webview Engine

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The 3.9.0 version of the Moodle app migrated from UIWebView to WKWebView, so that error shouldn't be displayed from that version onwards. Please make sure your app is using the latest code of the app.
In reply to Dani Palou

Re: Moodle Mobile webview Engine

by Sreenu Vasulu -
Hey Dani Palou
Thanks for your reply.

If I shift to the latest code then the iframe inside the scrom is not working.
When I'm working in browser i can see the scrom playing.
But after converting it to apk the scrom is not working in the physical device.
In reply to Sreenu Vasulu

Re: Moodle Mobile webview Engine

by Sreenu Vasulu -

When I try to debug. Here is the error I can see in the console.

Error while debugging

In reply to Sreenu Vasulu

Re: Moodle Mobile webview Engine

by Sreenu Vasulu -

I solved the error by uninstalling the webview plugin.
But after i tried to change the icon and splash screen

i just changed the splash screen and icon image in the respective folder.

Inorder to make changes i used followed 
" ionic cordova resources "

After using the above command i'm not able to add the android platform

cordova platform add android

Using cordova-fetch for cordova-android@~7.1.1

Adding android project...

Creating Cordova project for the Android platform:

Path: platforms/android

Package: com.mobile.*********

Name: *******

Activity: MainActivity

Android target: android-27

Android project created with cordova-android@7.1.4

Android Studio project detected

Android Studio project detected

The "path" argument must be of type string. Received type undefined


In reply to Sreenu Vasulu

Re: Moodle Mobile webview Engine

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
The webview plugin is required for iOS, but it shouldn't be present in Android. That's a problem because Cordova doesn't let you specify that you want to use a plugin only in one platform. So for now you'll have to manually remove the webview plugin when building for Android, and add it again when building for iOS.

We have this issue to fix this:

https://tracker.moodle.org/browse/MOBILE-3471

Cheers,
Dani