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?

Govindaprasath E發表於
Number of replies: 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!

評比平均分數: -
In reply to Govindaprasath E

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

Noel De Martin發表於
Core developers的相片 Moodle HQ的相片 Peer reviewers的相片 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.