cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Embedding links to websites in HoloLens Experiences

pjahn
16-Pearl

Embedding links to websites in HoloLens Experiences

Is it possible to add "clickable" links to websites in a Vuforia View HoloLens Experience? They could be opened with Microsoft Edge.

ACCEPTED SOLUTION

Accepted Solutions

Hi @pjahn ,

 

we do not have a link widget directly but you can use any widgets which supports  the  click event:  modelitems  , 3dImage , 3d Gauges  and 3dLabels.

 

2019-05-07_16-35-08.gif

 

You can simple call from there a funciton  - here example:

 

$scope.openUrl=function()
{
let url= "https://www.bing.com/"
window.open(url)
}

I tested it and it was working - it called the edge browser and open the web. page. 

So , in this case the clickable links should be some 3d elements where you have to point with the gase functionality and tap on them (tap event) I think this could be used as workaround. (HoloLens 1)  

View solution in original post

3 REPLIES 3

Hi @pjahn ,

 

we do not have a link widget directly but you can use any widgets which supports  the  click event:  modelitems  , 3dImage , 3d Gauges  and 3dLabels.

 

2019-05-07_16-35-08.gif

 

You can simple call from there a funciton  - here example:

 

$scope.openUrl=function()
{
let url= "https://www.bing.com/"
window.open(url)
}

I tested it and it was working - it called the edge browser and open the web. page. 

So , in this case the clickable links should be some 3d elements where you have to point with the gase functionality and tap on them (tap event) I think this could be used as workaround. (HoloLens 1)  

but here seems to be a problem:

- in chrome preview is working fine - it displays  the web page

-> MS Edge will start and will try the open the correct link but  it will block it with the message "this side is not secure" and there is an security cerificate error. The same URL could be opened in edge on the HoloLens without problemes when the Edge browser is started from the GUI.

By default settings we can open only URL with the same domain.

 

For example if the ES server is:

https://xxxxfd7o.studio-trial.thingworx.io/ExperienceService

then we can open a preview of another experience:

///////////////
$scope.openUrl=function()
{
 let url= "https://www.bing.com/"
url="https://xxxxfd7o.studio-trial.thingworx.io/ExperienceService/content/projects/bla/index-desktop.html?expIndex=0#/Home"
 window.open(url)
}

So seems that CORS seem to  be here an issue, but may be you can find  setting to disable this behavior and to call it..

Thank you. It works.
Announcements

Top Tags