Start a new topic

Service App Issue with MiRZA Wear Detection: Correlation with Permission Request

We are developing a service application (https://www.nttqonoq.com/service/real-support/) using MiRZA. This service application has a call function, and when entering a room, it asks for microphone and camera permission. Additionally, a problem has occurred where this application stops when MiRZA’s proximity sensor for wear detection is turned ON (when the glasses are worn).

As a result of investigating this issue, we found that the following processes are called every time the proximity sensor is turned ON. We recognize this as a specification of Spaces because it occurs in all applications. 


・Camera permission

------

string cameraPermission = UnityEngine.Android.Permission.Camera;


UnityEngine.Android.PermissionCallbacks callbacks = new UnityEngine.Android.PermissionCallbacks();

callbacks.PermissionGranted += OnPermissionGranted_Camera;

callbacks.PermissionDenied += OnPermissionDenied_Camera;

callbacks.PermissionDeniedAndDontAskAgain += OnPermissionDenied_Camera;

UnityEngine.Android.Permission.RequestUserPermission(cameraPermission, callbacks);

------


・Microphone permission

------

string micPermission = UnityEngine.Android.Permission.Microphone;


UnityEngine.Android.PermissionCallbacks callbacks = new UnityEngine.Android.PermissionCallbacks();

callbacks.PermissionGranted += OnPermissionGranted_Mic;

callbacks.PermissionDenied += OnPermissionDenied_Mic;

callbacks.PermissionDeniedAndDontAskAgain += OnPermissionDenied_Mic;

UnityEngine.Android.Permission.RequestUserPermission(micPermission, callbacks);

-------


When UnityEngine.Android.Permission.RequestUserPermission() on the 7th line of either the camera or microphone permission request is called, the problem with the proximity sensor being ON occurs afterward.

We have found that this issue can be resolved by modifying the permission acquisition process.


<Questions> 

① Why does the application stop when the microphone permission confirmation process is executed? 

② Why are processes such as “Start Unity OpenXR Diagnostic Report” called when the proximity sensor is turned ON? Is it possible to prevent this from being called?

1 Comment

Hi Yuudai-san,

Could you please share this information via email to support@spaces.qualcomm.com so we can create a ticket for it?

Best regards,
 Andriy



Login to post a comment