Skip to content

Commit

Permalink
Adds microphone permission to info.plist (#35)
Browse files Browse the repository at this point in the history
* Adds  micriphone permision to info.plist

* Added config file permission information to the plugin.xml file.
  • Loading branch information
mokarian authored Mar 4, 2020
1 parent 2650cfb commit dbe22aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cognitiveservicesPlugin/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<edit-config target="NSMicrophoneUsageDescription" file="*-Info.plist" mode="merge">
<string>need microphone access to record sounds</string>
</edit-config>
</platform>
<plugin name="cordova-plugin-whitelist" spec="1" />
<engine name="browser" spec="^5.0.4" />
Expand Down
4 changes: 4 additions & 0 deletions cognitiveservicesPlugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
<header-file src="src/ios/CDVCognitiveServices.h" />
<source-file src="src/ios/CDVCognitiveServices.m" />

<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>need microphone access to record sounds</string>
</config-file>

<podspec>
<config>
<source url="https://github.com/CocoaPods/Specs/Specs/a/4/c"/>
Expand Down

0 comments on commit dbe22aa

Please sign in to comment.