code: function getBundleId(configXml, platform) {
      let output = null;
      const key =
        platform === "ios" ? "ios-CFBundleIdentifier" : "android-packageName";
  
      if (configXml.widget.$.hasOwnProperty(key)) {
        output = configXml.widget.$[key];
      } else if (configXml.widget.$.hasOwnProperty("id")) {
        output = configXml.widget.$.id;
      }
  
      return output;
    }
docs: read bundle id from config.xml (optional values override widget-id)