electrode-io / electrode-native

A platform to ease integration&delivery of React Native apps in existing mobile applications
https://native.electrode.io
Other
726 stars 113 forks source link

New iOS plist UsageDescription keys #1862

Closed leekuo closed 2 years ago

leekuo commented 2 years ago

Protected Resources in iOS apps needs UsageDescription keys/values to be added to the Info.plist (Information Property List). The string values will be presented to the user the first time they access the resource. Failure to set the appropriate UsageDescription in the Info.plist will result in the app crashing when running in iOS 10 or greater.

Here is the complete list of Protected Resources: https://developer.apple.com/documentation/bundleresources/information_property_list/protected_resources

The ErRunner generated by Electrode Native is missing two UsageDescriptions from that list and available to iOS 10, the minimum target typically generated: https://developer.apple.com/documentation/bundleresources/information_property_list/nssiriusagedescription https://developer.apple.com/documentation/bundleresources/information_property_list/nsspeechrecognitionusagedescription

As the ErRunner is generated only for running miniapps directly (i.e., "ern run-ios") and not used in the native app that would run the container, this change is purely for the miniapp developer's convenience.

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.