0
我正在使用Citrix StoreFront Web API並實施了所有步驟以驗證請求並獲取資源列表。我還能夠使用此代碼啓動應用程序:如何在HTML5接收器而不是Windows接收器中啓動Citrix XenApp?
function performLaunch(resource) {
var icaFileUrl = resource.launchurl,
csrfToken = getCookie('CsrfToken'),
currentTime = (new Date()).getTime(),
frameId = "launchframe_" + currentTime;
// To initiate a launch, an ICA file is loaded into a hidden iframe.
// The ICA file is returned with content type "application/x-ica", allowing it to be intercepted by the Citrix HDX
// browser plug-in in Firefox/Chrome/Safari. For IE, the user may be prompted to open the ICA file.
$('#hidden-iframes').append('<iframe id="' + frameId + '" name="' + frameId + '"></iframe>');
if (csrfToken != null) {
icaFileUrl = updateQueryString(icaFileUrl, "CsrfToken", csrfToken);
}
// Web Proxy request to load the ICA file into an iframe
// The request is made by adding
icaFileUrl = updateQueryString(icaFileUrl, 'launchId', currentTime);
$("#" + frameId).attr('src', icaFileUrl);
console.log('perform launch - url: ' + icaFileUrl);
}
但不幸的是它的Citrix Receiver啓動應用程序的Windows。但我的目標是在瀏覽器中啓動應用程序。我們在我們的Web服務器上安裝了Citrix Receiver for HTML5,但我不知道如何在那裏啓動應用程序。