You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is that DevicePortal.DevicePortalPlatforms is Unknown which causes Utilities.IsHoloLens(this.Platform, this.DeviceFamily) to return false and methods that should work (like TakeMrcPhotoAsync) will throw an Exception.
Could someone please add support for the Hololens 2 ?
Thanks
Edit:
As workaround I override the PlatformName:
var connection = new DefaultDevicePortalConnection("http://localhost:10080", "user", "pass");
var devicePortal = new DevicePortal(connection);
await devicePortal.ConnectAsync();
connection.OsInfo.GetType()
.GetProperty("PlatformName")
.SetValue(connection.OsInfo, "HoloLens");
The text was updated successfully, but these errors were encountered:
With the Hololens 2, the api call:
http://localhost:10080/api/os/info
returns:The issue is that
DevicePortal.DevicePortalPlatforms
isUnknown
which causesUtilities.IsHoloLens(this.Platform, this.DeviceFamily)
to returnfalse
and methods that should work (likeTakeMrcPhotoAsync
) will throw an Exception.Could someone please add support for the Hololens 2 ?
Thanks
Edit:
As workaround I override the PlatformName:
The text was updated successfully, but these errors were encountered: