Plugins config-file not added to .plist file
See original GitHub issueBug Report
Problem
I developed a Plugin, which has some <config-file>
Entrys. When i build the App for ios, they are not appended to the .plist File.
Information
For example i have the Following in the ios platform part of my plugin:
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>bluetooth-central</string>
</array>
</config-file>
After building, the .plist file does’t include “bluetooth-central” in the “UIBackgroundModes”. An other Plugin, that i use for Location, does the same for adding “location” and this works and appears.
Am i doing anything wrong?
But In the ion.json
File, it is present:
{
"xml": "<array><string>bluetooth-central</string></array>",
"count": 1
}
I noticed that config files, defined in this Plugin (https://github.com/jeduan/cordova-plugin-facebook4), are not present in my plist either.
Version information
I’m using cordova-ios@5.1.1
Maybe related to #581 , but it is closed (and merged), but still not works for me
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Editing the Entitlements.plist file using config.xml in Phonegap ...
It seems like config-file only works in plugins for some reason. It seems like it should work in your project config.xml , but...
Read more >Edit Config.xml in outsystems for IOS
Ok, so i got this to work by using the following forge plugin to add new keys to the config.xml. <config-file parent="UIBackgroundModes" target="*-Info.plist">...
Read more >Config Plugins - Expo Documentation
Learn about config plugins, which are the Expo way of customizing the prebuild phase of an project.
Read more >How to add keys to `xxx-info.plist` for `ionic platform add ios`
I have a cordova plugin cordova-plugin-camera-roll-location I am updating to swift3 As part of the process, I get this error with the latest ......
Read more >Plugin.xml reference documentation - Apache Cordova
Do not wrap the file with cordova.define, as it is added automatically. ... <config-file target="*-Info.plist" parent="CFBundleURLTypes"> <array> <dict> ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@HansKrywaa the fix is on the master branch of cordova-common so is as yet unreleased (the latest npm release is
cordova-common@4.0.1
). The latest releasecordova-ios@6.1.0
pins `cordova-common@^4.0.1.TL;DR: it will take a release of
cordova-common
then a release ofcordova-ios
which references it for this fix to become implicit incordova-ios
.In the meantime, if you need to, you can install directly off my fork of
cordova-ios
which contains this fix:The munging process is not in
cordova-ios
. It is in the core librarycordova-common
.https://github.com/apache/cordova-common