Acknowledging a similar question in the link below does anyone know how to add the information to the config.xml file in Cordova?
ITSAppUsesNonExemptEncryption export compliance while internal testing?
I need to have a true value in the plist:
ITSAppUsesNonExemptEncryption ITSEncryptionExportComplianceCode [ Key Value ]
Does anyone know the correct syntax to add this information?
The correct answer is actually:
Taken from Add hint that this won't work in phonegap build
November 2019, next is working for me:
NOTE: DON'T FORGET TO REMOVE platforms/ios folder and build again with
ionic cordova prepare ios
. Without that plist file may stay unchanged.I have create a simple empty plugin to set this
ITSAppUsesNonExemptEncryption
to false.Simply add the following to your
config.xml
or run
If you need to set it to true you can fork the plugin and change the
plugin.xml
file accordingly then add the plugin from the forked repository.See the plugin on NPM for more info.
As of 2/7/2019, the correct way to do this is to add this snippet to your
<platform name="ios">
section:I can across this issue using ionic.
After more research than expected I learned that plugins have the ability to update the config. To that end I just added the plugin "cordova-plugin-ios-non-exempt-encryption" to my package.json, rebuilt and it works!
If you want to append that config in the *-Info.plist file, you need to use config-file in this way:
The edit-config is to modify an existing config, and that config doesn't exist by default.