Skip to main content
Inspiring
September 26, 2018
Answered

NSMicrophoneUsageDescription key

  • September 26, 2018
  • 1 reply
  • 1626 views

Hi,

I'm trying to update an iOS app to iOS11, and i'm facing an issue related with the device usage descriptions.

When testing the new app version, Ican't have access to Microphone, Camera and PhotoLibray although I've added the folloowing lines in my descriptor:

<InfoAdditions><![CDATA[

    <key>NSPhotoLibraryUsageDescription</key> 

    <string>Nous utilisons la galerie pour vous permettre d'insérer dans l'application vos images personnalisés.</string>

    <key>NSCameraUsageDescription</key> 

    <string>Nous utilisons l'appareil photo pour vous permettre d'enregistrer vos images personnalisés.</string>

    <key>NSMicrophoneUsageDescription</key> 

    <string>Nous utilisons le microphone pour vous permettre d'enregistrer vos messages personnalisés.</string>

  <key>UIDeviceFamily</key>

Did I miss something?

Thks in advance for help.

Best regards

This topic has been closed for replies.
Correct answer kglad

No, I can't see them.

Please  find the complete descriptor file:

<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<!--

    Usage:

    To localize the description, use the following format for the description element.

    <description>

    <text xml:lang="en">English App description goes here</text>

    <text xml:lang="fr">French App description goes here</text>

    <text xml:lang="ja">Japanese App description goes here</text>

    </description>

    To localize the name, use the following format for the name element.

    <name>

    <text xml:lang="en">English App name goes here</text>

    <text xml:lang="fr">French App name goes here</text>

    <text xml:lang="ja">Japanese App name goes here</text>

    </name>

-->

<application xmlns="http://ns.adobe.com/air/application/30.0">

  <id>fr.ie.emopad</id>

  <versionNumber>1.8.0</versionNumber>

  <filename>emoipad_dist</filename>

  <description/>

  <name>Emauti'Causes</name>

  <copyright/>

  <initialWindow>

    <content>emoipad_dist.swf</content>

    <systemChrome>standard</systemChrome>

    <transparent>false</transparent>

    <visible>true</visible>

    <fullScreen>true</fullScreen>

    <aspectRatio>landscape</aspectRatio>

    <renderMode>auto</renderMode>

    <autoOrients>false</autoOrients></initialWindow>

  <icon>

    <image72x72>icons/Icon-72.png</image72x72>

    <image76x76>icons/Icon-76.png</image76x76>

    <image152x152>icons/Icon-152.png</image152x152>

    <image29x29>icons/Icon-Small.png</image29x29>

    <image57x57>icons/Icon.png</image57x57>

    <image114x114>icons/Icon@2x.png</image114x114>

    <image512x512>icone_512.png</image512x512>

    <image48x48>icone_48.png</image48x48>

    <image50x50>icone_50.png</image50x50>

    <image58x58>icons/Icon-Small@2x.png</image58x58>

    <image100x100>icone_100.png</image100x100>

    <image144x144>icons/Icon-144.png</image144x144>

    <image1024x1024>icons/Icon-Store.png</image1024x1024>

    <image40x40>icons/Icon-Small-40.png</image40x40>

    <image180x180>icons/Icon-180.png</image180x180>

    <image120x120>icons/Icon-120.png</image120x120>

    <image167x167>icons/Icon-167.png</image167x167>

    <image80x80>icons/Icon-Small-80.png</image80x80>

    <image60x60>icons/Icon-Notification@3x.png</image60x60>

    <image87x87>icons/Icon-Small@3x.png</image87x87>

    <image75x75>icons/Icon-75.png</image75x75></icon>

  <customUpdateUI>false</customUpdateUI>

  <allowBrowserInvocation>false</allowBrowserInvocation>

  <supportedLanguages>fr</supportedLanguages>

  <iPhone>

    <InfoAdditions><![CDATA[

    <key>NSPhotoLibraryUsageDescription</key>

    <string>Nous utilisons la galerie pour vous permettre d'insérer dans l'application vos images personnalisés.</string>

    <key>NSCameraUsageDescription</key>

    <string>Nous utilisons l'appareil photo pour vous permettre d'enregistrer vos images personnalisés.</string>

    <key>NSMicrophoneUsageDescription</key>

    <string>Nous utilisons le microphone pour vous permettre d'enregistrer vos messages personnalisés.</string>

  <key>UIDeviceFamily</key>

  <array>

    <string>2</string>

  </array>

]]></InfoAdditions>

    <requestedDisplayResolution>high</requestedDisplayResolution>

  </iPhone>

</application>

Thks a lot for helping.

Best regards


i don't see a problem with your descriptor file.

are you testing on a newer os?  try adding:

<key>MinimumOSVersion</key>

  <string>8.0</string>

to your infoadditions cdata tag.

1 reply

kglad
Community Expert
Community Expert
September 26, 2018

is infoAdditions a subtag of your iphone tag?

Inspiring
September 26, 2018

Yes it is

See the full tag:

<iPhone>

    <InfoAdditions><![CDATA[

    <key>NSPhotoLibraryUsageDescription</key>

    <string>Nous utilisons la galerie pour vous permettre d'insérer dans l'application vos images personnalisés.</string>

    <key>NSCameraUsageDescription</key>

    <string>Nous utilisons l'appareil photo pour vous permettre d'enregistrer vos images personnalisés.</string>

    <key>NSMicrophoneUsageDescription</key>

    <string>Nous utilisons le microphone pour vous permettre d'enregistrer vos messages personnalisés.</string>

  <key>UIDeviceFamily</key>

  <array>

    <string>2</string>

  </array>

]]></InfoAdditions>

    <requestedDisplayResolution>high</requestedDisplayResolution>

  </iPhone>

Inspiring
September 27, 2018

do you see the prompts when opening your app on an iphone during testing?

if not, post your descriptor file.


No, I can't see them.

Please  find the complete descriptor file:

<?xml version="1.0" encoding="utf-8" standalone="no" ?>

<!--

    Usage:

    To localize the description, use the following format for the description element.

    <description>

    <text xml:lang="en">English App description goes here</text>

    <text xml:lang="fr">French App description goes here</text>

    <text xml:lang="ja">Japanese App description goes here</text>

    </description>

    To localize the name, use the following format for the name element.

    <name>

    <text xml:lang="en">English App name goes here</text>

    <text xml:lang="fr">French App name goes here</text>

    <text xml:lang="ja">Japanese App name goes here</text>

    </name>

-->

<application xmlns="http://ns.adobe.com/air/application/30.0">

  <id>fr.ie.emopad</id>

  <versionNumber>1.8.0</versionNumber>

  <filename>emoipad_dist</filename>

  <description/>

  <name>Emauti'Causes</name>

  <copyright/>

  <initialWindow>

    <content>emoipad_dist.swf</content>

    <systemChrome>standard</systemChrome>

    <transparent>false</transparent>

    <visible>true</visible>

    <fullScreen>true</fullScreen>

    <aspectRatio>landscape</aspectRatio>

    <renderMode>auto</renderMode>

    <autoOrients>false</autoOrients></initialWindow>

  <icon>

    <image72x72>icons/Icon-72.png</image72x72>

    <image76x76>icons/Icon-76.png</image76x76>

    <image152x152>icons/Icon-152.png</image152x152>

    <image29x29>icons/Icon-Small.png</image29x29>

    <image57x57>icons/Icon.png</image57x57>

    <image114x114>icons/Icon@2x.png</image114x114>

    <image512x512>icone_512.png</image512x512>

    <image48x48>icone_48.png</image48x48>

    <image50x50>icone_50.png</image50x50>

    <image58x58>icons/Icon-Small@2x.png</image58x58>

    <image100x100>icone_100.png</image100x100>

    <image144x144>icons/Icon-144.png</image144x144>

    <image1024x1024>icons/Icon-Store.png</image1024x1024>

    <image40x40>icons/Icon-Small-40.png</image40x40>

    <image180x180>icons/Icon-180.png</image180x180>

    <image120x120>icons/Icon-120.png</image120x120>

    <image167x167>icons/Icon-167.png</image167x167>

    <image80x80>icons/Icon-Small-80.png</image80x80>

    <image60x60>icons/Icon-Notification@3x.png</image60x60>

    <image87x87>icons/Icon-Small@3x.png</image87x87>

    <image75x75>icons/Icon-75.png</image75x75></icon>

  <customUpdateUI>false</customUpdateUI>

  <allowBrowserInvocation>false</allowBrowserInvocation>

  <supportedLanguages>fr</supportedLanguages>

  <iPhone>

    <InfoAdditions><![CDATA[

    <key>NSPhotoLibraryUsageDescription</key>

    <string>Nous utilisons la galerie pour vous permettre d'insérer dans l'application vos images personnalisés.</string>

    <key>NSCameraUsageDescription</key>

    <string>Nous utilisons l'appareil photo pour vous permettre d'enregistrer vos images personnalisés.</string>

    <key>NSMicrophoneUsageDescription</key>

    <string>Nous utilisons le microphone pour vous permettre d'enregistrer vos messages personnalisés.</string>

  <key>UIDeviceFamily</key>

  <array>

    <string>2</string>

  </array>

]]></InfoAdditions>

    <requestedDisplayResolution>high</requestedDisplayResolution>

  </iPhone>

</application>

Thks a lot for helping.

Best regards