I am developing an enterprise application for android and wish to implement managed configurations as described here: https://developer.android.com/work/managed-configurations.html.
Is this something that NativeScript can support, and if so, how do I go about implementing it?
I have tried adding app_restrictions.xml to the App_Resources/Android/values folder but I get the following build error:
Execution failed for task ':mergeF0F1DebugResources'. Error: Unsupported type 'restriction'
This is the content of app_restrictions.xml:
<?xml version="1.0" encoding="utf-8"?> <restrictions xmlns:android="http://schemas.android.com/apk/res/android"> <restriction android:key="downloadOnCellular" android:restrictionType="bool" android:defaultValue="true" /> </restrictions>
Update: Solved on Stack Overflow. The restrictions file must be placed in a new App_Resources/Android/xml folder.