How to edit AndroidManifest.xml and how to create network_security_config.xml from config.xml of Moodle Mobile App?

How to edit AndroidManifest.xml and how to create network_security_config.xml from config.xml of Moodle Mobile App?

av Govindaprasath E -
Antall svar: 1

Hello fellow Moodle Developer,

I've created a custom plugin to be used in the mobile app. Unforunately, the images aren't loading. I've already posted about this.

I've found this Ionic forum discussion about loading image over Http. It suggests:

-------------------

Just put:

android:networkSecurityConfig="@xml/network_security_config"

In my AndroidManifest.xml and edit/create the file network_security_config.xml:

<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
    <domain-config cleartextTrafficPermitted="true">
        <domain includeSubdomains="true">www.cisgalicia.org</domain>
    </domain-config>
</network-security-config>

-------------------

How can I do this from config.xml of the Moodle app's root folder? Kindly help

Thanks!

Gjennomsnittlig vurdering: -
Som svar til Govindaprasath E

Re: How to edit AndroidManifest.xml and how to create network_security_config.xml from config.xml of Moodle Mobile App?

av Noel De Martin -
Bilde av Core developers Bilde av Moodle HQ Bilde av Peer reviewers Bilde av Plugin developers

Hi there,

It seems like you have already solved it using the core-external-content directive, but just for the record it's not possible to update the Android manifest or any native code in plugins.