cordova-plugin-ble-central: `cordova plugin add` doesn't add `` attribute to `config.xml`

I’ve tried this a few times even on fresh projects, it just won’t add the required line <plugin name="cordova-plugin-ble-central" spec="~2.1.0" /> to config.xml, it does everything else like variables (used for iOS for example) and the node package. If it’s not supposed to add it, it’d be nice to include that we have to add the line under the Installation heading

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 20

Most upvoted comments

sorry for the hassle, i did it and it works, i also went back to my repo and deleted the line from config.xml and it still works but maybe im supposed to rebuild or something to clean the incremental artifacts? or maybe i’ve just been mysterious bugged

<?xml version='1.0' encoding='utf-8'?>
<widget id="io.cordova.spoonlocal" version="1.0.0" xmlns="http://www.w3.org/ns/widgets"
        xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>SpoonLocal</name>
    <description>Sample Apache Cordova App</description>
    <author email="dev@cordova.apache.org" href="https://cordova.apache.org">
        Apache Cordova Team
    </author>
    <content src="index.html"/>
    <access origin="*" />
    <allow-intent href="http://*/*"/>
    <allow-intent href="https://*/*"/>

    <platform name="ios">
        <config-file parent="UIBackgroundModes" target="*-Info.plist">
            <array>
                <string>bluetooth-central</string>
            </array>
        </config-file>
    </platform>

    <plugin name="cordova-plugin-ble-central" spec="~2.1.0" />
</widget>

this is just the template that i haven’t worked on customizing yet