I need to create custom plugin that will add entries to info.plist for cordova/angular4 iOS application. (In this case exit application if home button pressed)
I need to add row:
<key>UIApplicationExitsOnSuspend</key>
<true/>
Here is the content of plugin I wrote (which may be not correct, because I couldn't test it).
<config-file target="*-Info.plist" platform="ios" parent="UIApplicationExitsOnSuspend">
<array>
<boolean><true/></boolean>
</array>
</config-file>
What is needed to 'import' this plugin to config.xml and so that every time I do cordova build ios
plist file will have entries I need?
I've read this posts and I didn't understood how it's done.