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?
I had to modify Andrej's answer a bit, this worked for me:
<platform name="ios">
...
<config-file target="*-Info.plist" parent="ITSAppUsesNonExemptEncryption" mode="add">
<false/>
</config-file>
...
</platform>
As of 2/7/2019, the correct way to do this is to add this snippet to your <platform name="ios">
section:
<edit-config file="*-Info.plist" mode="add" target="ITSAppUsesNonExemptEncryption">
<false/>
</edit-config>
I have create a simple empty plugin to set this ITSAppUsesNonExemptEncryption
to false.
Simply add the following to your config.xml
<plugin name="cordova-ios-plugin-no-export-compliance" spec="0.0.5" />
or run
cordova plugin add cordova-ios-plugin-no-export-compliance
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With