Yeah I know I need to handle the application exit myself, it's not the issue, the issue is the callback from Api.Init don't get called at all, so I can't check anything.
I assume it's because viveport is not installed on my computer, as I got this request 3 times after starting the application:
To reproduce just don't install viveport, use the example script below, start the application and press echap 3 times when the application try to open Viveport.
using UnityEngine;using System;using Viveport;public class ViveportDemo : MonoBehaviour{ static string VIVEPORT_ID = "bd67b286-aafc-449d-8896-bb7e9b351876"; // Use this for initialization void Start () { Api.Init(InitStatusHandler, VIVEPORT_ID); } private static void InitStatusHandler(int nResult) { Viveport.Core.Logger.Log("Init(): " + nResult); }}
You should not see any "Init(): XX" line in the log because the callback don't get called.