Adapt your plugins to Ionic 5

Re: Adapt your plugins to Ionic 5

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

I think this happens because you're using "localhost" to connect to the site. In Ionic 5 we need to use the ionic-webview Cordova plugin in Android (it wasn't required before), and this plugin makes the Android app be served under http://localhost. So now the app treats "http://localhost" URLs as downloaded files. If you use your local IP instead of localhost to connect to the site then the image should work fine.

Please notice that in a real device you won't use localhost to connect to a local site, so this issue only affects the webapp. I'll talk to the team to discuss if we add an exception for the webapp smile

Cheers,
Dani
In reply to Dani Palou

Re: Adapt your plugins to Ionic 5

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
We've added an exception in the code, it's already live in the webapp. Can you please check if images are working now?