CWA for IOS | IOS 17.0 not showing localhost as endpoint name in Citrix Director.

CWA for IOS | IOS 17.0 not showing localhost as endpoint name in Citrix Director.

book

Article ID: CTX588054

calendar_today

Updated On:

Description

Customer have recently upgraded the IOS to 17.0.2 from 16.7 on their IPad's. Since then, the Endpoint name is showing up as Local host on Citrix Director
CWA tested is 2309.
Due to this issue, the application launch is failing due to a policy they have set ( this policy enables launch of application only if a known device is trying to launch)

Resolution

This is a solution for MDM customers while Citrix works with Apple to get User Device Entitlement from Apple

Starting iOS 16, any app (including Citrix Workspace App) need to explicitly request for an additional entitlement from Apple for accessing this information and it must meet multiple criteria before being granted. https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name?language=objc provides more info on this

Install 23.12 version of CWA and create below app configuration policy to use DeviceName (refer https://docs.citrix.com/en-us/citrix-workspace-app-for-ios/whats-new.html)

On MS Intune:

<key>deviceName</key>
<string>{{DeviceName}}</string> 

On Jamf:

    <key>deviceName</key>
    <string>$DeviceName</string>

Problem Cause

We send hostname from HDX session to the server which is getting updated on Citrix director.

From iOS 17 Apple made a change that restricts getHostname to fetch the client name.
https://developer.apple.com/forums/thread/731988 - This thread explains why exactly getHostname returns localhost. Apple made this change due to security reasons.