code: function readPreferences(cordovaContext) {
    // read data from projects root config.xml file
    var configXml = new ConfigXmlHelper(cordovaContext).read();
    if (configXml == null) {
      console.warn('config.xml not found! Please, check that it exist\'s in your project\'s root directory.');
      return null;
    }
  
    // look for data from the <universal-links> tag
    var ulXmlPreferences = configXml.widget['universal-links'];
    if (ulXmlPreferences == null || ulXmlPreferences.length == 0) {
      console.warn('<universal-links> tag is not set in the config.xml. Universal Links plugin is not going to work.');
      return null;
    }
  
    var xmlPreferences = ulXmlPreferences[0];
  
    // read hosts
    var hosts = constructHostsList(xmlPreferences);
  
    // read ios team ID
    var iosTeamId = getTeamIdPreference(xmlPreferences);
  
    return {
      'hosts': hosts,
      'iosTeamId': iosTeamId
    };
  }
docs: region Public API 
  Read plugin preferences from the config.xml file.
  
  @param {Object} cordovaContext - cordova context object
  @return {Array} list of host objects