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 -
Antal 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!

Medeltalet av utvärderingarna: -
Som svar till 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 -
Bild av Core developers Bild av Moodle HQ Bild av Peer reviewers Bild 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.

Medeltalet av utvärderingarna: -