hooks/lib/ios/projectEntitlements.js
function generateEntitlements(cordovaContext, pluginPreferences) {
  context = cordovaContext;

  var currentEntitlements = getEntitlementsFileContent();
  var newEntitlements = injectPreferences(currentEntitlements, pluginPreferences);

  saveContentToEntitlementsFile(newEntitlements);
}
function generateEntitlements(cordovaContext, pluginPreferences) {
  context = cordovaContext;

  var currentEntitlements = getEntitlementsFileContent();
  var newEntitlements = injectPreferences(currentEntitlements, pluginPreferences);

  saveContentToEntitlementsFile(newEntitlements);
}
function generateEntitlements ( cordovaContext , pluginPreferences ) { context = cordovaContext ; var currentEntitlements = getEntitlementsFileContent ( ) ; var newEntitlements = injectPreferences ( currentEntitlements , pluginPreferences ) ; saveContentToEntitlementsFile ( newEntitlements ) ; }
region Public API 
Generate entitlements file content.

@param {Object} cordovaContext - cordova context object
@param {Object} pluginPreferences - plugin preferences from config.xml; already parsed
region Public API Generate entitlements file content .