hooks/lib/ios/xcodePreferences.js
function enableAssociativeDomainsCapability(cordovaContext) {
  context = cordovaContext;

  var projectFile = loadProjectFile();

  // adjust preferences
  activateAssociativeDomains(projectFile.xcode);

  // add entitlements file to pbxfilereference
  addPbxReference(projectFile.xcode);

  // save changes
  projectFile.write();
}
function enableAssociativeDomainsCapability(cordovaContext) {
  context = cordovaContext;

  var projectFile = loadProjectFile();

  // adjust preferences
  activateAssociativeDomains(projectFile.xcode);

  // add entitlements file to pbxfilereference
  addPbxReference(projectFile.xcode);

  // save changes
  projectFile.write();
}
function enableAssociativeDomainsCapability ( cordovaContext ) { context = cordovaContext ; var projectFile = loadProjectFile ( ) ; // adjust preferences activateAssociativeDomains ( projectFile . xcode ) ; // add entitlements file to pbxfilereference addPbxReference ( projectFile . xcode ) ; // save changes projectFile . write ( ) ; }
region Public API 
Activate associated domains capability for the application.

@param {Object} cordovaContext - cordova context object
region Public API Activate associated domains capability for the application .