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

Getting a 3D alert to work on HoloLens (Ionic Framework)

Getting a 3D alert to work on HoloLens (Ionic Framework)

Hello,

 

I am using the following code to give popups/alerts during my experience. I have tested the code both on a mobile project and a 3D eyewear project. The code works fine on a mobile project, but on the 3D project using HoloLens will nothing appear. 

 

Does HoloLens not support the Ionic framework or am I missing something? 

 

$scope.Evaluate = function()
{
  var stopOrFix = $ionicPopup.confirm({
    title: "Machine Error Found",
    template: "Decide if you want to fix the machine error now or move on",
    cancelText: "Move on",
    cancelType: "button-default",
    okText: "Fix it now",
    okType: "button-default"
  });
  
  stopOrFix.then(function(res){
    if (res)
    {
      // Make it possible to scan again 
      console.log("If statement called");
      $scope.Alert();
      
      
    } else {    
      // do nothing
      console.log("Move on");
    }
    
    
  })
};

$scope.Alert = function()
{
  var alertPopup = $ionicPopup.alert(
  {
    title: "Machine Error found",
    template: "Scan the QR code of the machine to get info"
  });
  
  alertPopup.then(function(res)
  {
    console.log("Console logging");
  }); 
};

 

1 REPLY 1

Re: Getting a 3D alert to work on HoloLens (Ionic Framework)

Hi @KasperLEGO ,

 

so far I know, it was not possible in generally possible to do this because  the HoloLens does not support 2d elements - means also the IsonicPopus. I checked first if in the meantime the functionality change but seem still it does not work also in the current version. The IsonicPopus  will work in the project preview, because the chrome and the Vuforia studio thingview support 2d elements for mobile 2d and 3d -  but on end device HoloLens it will not  work. I could also confirm this behavior after test by myself (with HoloLens 1 device)  when I test it that in preview mode Ionic framework is shown / e.g. the alert popup/ but this will not be called when you try this on the HoloLens device .

What we can do?

I think we can use a 3d Element instead which should implement the dialog.. For example, 3D Image which displays your dialog / you can use a picture or can generate it dynamically as SVG file format. 

The different buttons you can play  e.g. in front of the 3d image on some small distance so that you will be able to tap on it

 

2020-02-11_12-05-14.gif

Announcements
Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection