Info Resource

Info resources are special strings used by NeoMAD to provide localized strings to native project.

For example, some permissions need to provide usage description to say why the application needs the permission. This description must be provided in a NeoMAD application through info resources.

Info resources are written an an info.xml file that can be localized:

res/
  string/
    infos.xml
    infos-fr.xml
    infos-en.xml
    infos-en-US.xml

The filename must contain the infos prefix followed by the locale name.

info.xml syntax

<?xml version="1.0" encoding="utf-8"?>
<infos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:noNamespaceSchemaLocation="http://www.neomades.com/XSD/4.0.0/infos.xsd">
    <info name="cameraPermissionUsage">My App will use your camera.</info>
</infos>

List of Permission usage description keys:

  • agendaPermissionUsage
  • cameraPermissionUsage
  • microphonePermissionUsage
  • contactsPermissionUsage
  • locationWhenInUsePermissionUsage
  • locationAlwaysPermissionUsage
  • photoLibraryPermissionUsage
  • sensorsPermissionUsage

These keys provide permission usage description and are associated with the permissions declared in the URS. See permission documentation for further information.

For further details see permissions documentation.