bitpay / cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
MIT License
567 stars 773 forks source link

how to override NSCameraUsageDescription provided by this package? #364

Open vesper8 opened 2 years ago

vesper8 commented 2 years ago

I already had my own NSCameraUsageDescription description in my config.xml file and this package has replaced it by The camera is used to scan QR codes.

This has actually led to Apple rejecting my app now because the message is too vague and according to Apple: We noticed that your app requests the user’s consent to access the camera, but doesn’t sufficiently explain the use of the camera in the purpose string.

Short of forking the app, could anyone explain how can I override this message with my own?

Many thanks

nxt-hj commented 2 years ago
<edit-config file="*-Info.plist" mode="overwrite" target="NSCameraUsageDescription">
    <string>你的权限申请说明</string>
</edit-config>