examples/cordova1/plugins/branch-cordova-sdk/src/scripts/ios/updateAssociatedDomains.js
function addAssociatedDomains(preferences) {
    const files = getEntitlementFiles(preferences);

    for (let i = 0; i < files.length; i++) {
      const file = files[i];
      let entitlements = getEntitlements(file);

      entitlements = updateEntitlements(entitlements, preferences);
      setEntitlements(file, entitlements);
    }
  }
function addAssociatedDomains(preferences) {
    const files = getEntitlementFiles(preferences);

    for (let i = 0; i < files.length; i++) {
      const file = files[i];
      let entitlements = getEntitlements(file);

      entitlements = updateEntitlements(entitlements, preferences);
      setEntitlements(file, entitlements);
    }
  }
function addAssociatedDomains ( preferences ) { const files = getEntitlementFiles ( preferences ) ; for ( let i = 0 ; i < files . length ; i ++ ) { const file = files [ i ] ; let entitlements = getEntitlements ( file ) ; entitlements = updateEntitlements ( entitlements , preferences ) ; setEntitlements ( file , entitlements ) ; } }
updates the associated domains from the link-domain field of the app's config.xml
updates the associated domains from the link - domain field of the app s config . xml