Given that some of the core plugins would crash without these settings, I expect you're right in that you need the descriptions. AFAIK, though, there's no way to localize those strings currently. You might be able to do this with Xcode, but that's not option since you're using PGB.
Thanks for your reply. If I understood this correctly, this is something that needs to be integrated into PGB since this is the only place where the Xcode configuration can be changed. Is there anybody working on it already? Or maybe a schedule when this will be done? I think I am not the only one who needs file inputs or plugins interacting with the file system. This is an essential part of my app
2 people found this helpful
I had the same problem, here's what I did to solve it:
You can add properties to the info.plist file via the config.xml file, add the following to the config.xml:
<config-file platform="ios" parent="NSCameraUsageDescription" mode="replace"> <string>This will be displayed to the user when asking permissions. CHANGE ME.</string> </config-file> <config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace"> <string>This will be displayed to the user when asking permissions. CHANGE ME.</string> </config-file>
Hope that helps!
The problem with this is that these entries aren't localized: They are either English or German or...
I have created a plugin for that: GitHub - MBuchalik/cordova-plugin-ios-permissions: Prevent crashes in iOS apps due to missing entries in the plist file.…
But: I cannot really test it at the moment in my real apps since they need the push plugin and I think you may have heard about the current struggle
If i want to take a video, it still crash.
Are you using my plugin? Could you provide a small test app (maybe only consisting of config.xml and index.html) and explain where you have to click until the app crashes?
Thanks a Lot