diff --git a/README.md b/README.md index a5112ed5..d1ce8e78 100644 --- a/README.md +++ b/README.md @@ -293,6 +293,17 @@ Starts or resumes playing an audio file. var myMedia = new Media("audio/beer.mp3") myMedia.play() // first looks for file in www/audio/beer.mp3 then in /documents/tmp/audio/beer.mp3 +Since iOS 10 it's mandatory to add a `NSMicrophoneUsageDescription` in the info.plist. + +* `NSMicrophoneUsageDescription` describes the reason that the app accesses the user’s microphone. + +When the system prompts the user to allow access, this string is displayed as part of the dialog box. + +This string has been hard coded with the following text to allow the plugin to be used by PhoneGap Build as well as the Cordova CLI: + +* `NSMicrophoneUsageDescription:` This app requires access to the microphone to record audio. + + ## media.release Releases the underlying operating system's audio resources. diff --git a/package.json b/package.json index bfa7b1a6..8c08d501 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-media-with-compression", - "version": "2.1.0", + "version": "2.1.1", "description": "Cordova Media Plugin with MPEG 4 audio compression for iOS and Android", "cordova": { "id": "cordova-media-with-compression", diff --git a/plugin.xml b/plugin.xml index 2ccaf67c..a9519af8 100644 --- a/plugin.xml +++ b/plugin.xml @@ -21,7 +21,7 @@ +version="2.1.1"> Media With Compression: Alpha Software Edition Cordova Media Plugin with MPEG 4 audio compression for iOS and Android @@ -111,9 +111,9 @@ version="2.1.0"> - + - $MICROPHONE_USAGE_DESCRIPTION + This app requires access to the microphone to record audio.