hooks/lib/ios/appleAppSiteAssociationFile.js
function generateFileContentForHost(host, teamId) {
  var appID = teamId + '.' + getBundleId();
  var paths = host.paths.slice();

  // if paths are '*' - we should add '/' to it to support root domains.
  // https://github.com/nordnet/cordova-universal-links-plugin/issues/46
  if (paths.length == 1 && paths[0] === '*') {
    paths.push('/');
  }

  return {
    "applinks": {
      "apps": [],
      "details": [{
        "appID": appID,
        "paths": paths
      }]
    }
  };
}
function generateFileContentForHost(host, teamId) {
  var appID = teamId + '.' + getBundleId();
  var paths = host.paths.slice();

  // if paths are '*' - we should add '/' to it to support root domains.
  // https://github.com/nordnet/cordova-universal-links-plugin/issues/46
  if (paths.length == 1 && paths[0] === '*') {
    paths.push('/');
  }

  return {
    "applinks": {
      "apps": [],
      "details": [{
        "appID": appID,
        "paths": paths
      }]
    }
  };
}
function generateFileContentForHost ( host , teamId ) { var appID = teamId + '.' + getBundleId ( ) ; var paths = host . paths . slice ( ) ; // if paths are '*' - we should add '/' to it to support root domains. // https://github.com/nordnet/cordova-universal-links-plugin/issues/46 if ( paths . length == 1 && paths [ 0 ] === '*' ) { paths . push ( '/' ) ; } return { "applinks" : { "apps" : [ ] , "details" : [ { "appID" : appID , "paths" : paths } ] } } ; }
Generate content of the apple-app-site-association file for the specific host.

@param {Object} host - host information
@return {Object} content of the file as JSON object
Generate content of the apple - app - site - association file for the specific host .