hooks/afterPrepareHook.js
function activateUniversalLinksInIos(cordovaContext, pluginPreferences) {
  // modify xcode project preferences
  iosProjectPreferences.enableAssociativeDomainsCapability(cordovaContext);

  // generate entitlements file
  iosProjectEntitlements.generateAssociatedDomainsEntitlements(cordovaContext, pluginPreferences);

  // generate apple-site-association-file
  iosAppSiteAssociationFile.generate(cordovaContext, pluginPreferences);
}
function activateUniversalLinksInIos(cordovaContext, pluginPreferences) {
  // modify xcode project preferences
  iosProjectPreferences.enableAssociativeDomainsCapability(cordovaContext);

  // generate entitlements file
  iosProjectEntitlements.generateAssociatedDomainsEntitlements(cordovaContext, pluginPreferences);

  // generate apple-site-association-file
  iosAppSiteAssociationFile.generate(cordovaContext, pluginPreferences);
}
function activateUniversalLinksInIos ( cordovaContext , pluginPreferences ) { // modify xcode project preferences iosProjectPreferences . enableAssociativeDomainsCapability ( cordovaContext ) ; // generate entitlements file iosProjectEntitlements . generateAssociatedDomainsEntitlements ( cordovaContext , pluginPreferences ) ; // generate apple-site-association-file iosAppSiteAssociationFile . generate ( cordovaContext , pluginPreferences ) ; }
Activate Universal Links for iOS application.

@param {Object} cordovaContext - cordova context object
@param {Object} pluginPreferences - plugin preferences from the config.xml file. Basically, content from <universal-links> tag.
Activate Universal Links for iOS application .