Add entry to iOS .plist file via Cordova config.xml

后端 未结 15 1500
日久生厌
日久生厌 2020-11-28 21:41

I am new to the Cordova CLI.

I need to perform the following steps programmatically via Cordova.

  1. In the project .plist add a new row
  2. Enter th
15条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 22:30

    UPDATE: for people want to use camera with iOS >= 10. This mean, by normal you can config in plugin as:

     
     
    
         
             
         
         
             
         
          
             
         
    
     
    

    But for now, you can't config NSCameraUsageDescription and NSPhotoLibraryUsageDescription in plugin. You need to config them in platform -> iOS project by Xcode or in *-Info.plist file.

    Since iOS 10 it's mandatory to add a NSCameraUsageDescription and NSPhotoLibraryUsageDescription in the info.plist.

    Learn more: https://www.npmjs.com/package/cordova-plugin-camera

提交回复
热议问题