Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
snecpsu's avatar
snecpsu
Honored Guest
1 year ago

Always pop-up Help to improve Meta SDKs window

I am using Meta XR All-in-One SDK to develop a Quest app. The SDK version used is v68.0.1. The following window always pops up whenever I open the Unity project or hit the 'Play' button in Unity Editor to debug. When I follow the instructions to "Meta XR > Telemetry", there is no response when I click the checkbox. This does not affect any other functionalities but is pretty annoying. I would greatly appreciate it if someone could take a look at it. I am on a clean project in Unity 2021.3.33f1 without any other plugins, and I disabled Unity Connect.

 

5 Replies

Replies have been turned off for this discussion
  • snecpsu's avatar
    snecpsu
    Honored Guest

    The problem was solved by downgrading to version 67.0.0. This may be a new issue introduced by v68.

  • Disable line 37 in

    [Your Project]\Library\PackageCache\com.meta.xr.sdk.core@68.0.2\Editor\OVRTelemetry\OVRTelemetryPopup.cs until Meta updates the file themselves.

        private static void Update()
        {
            EditorApplication.update -= Update;
            if (ShouldShowPopup())
            {
                // ShowPopup();
            }
    
            OVRTelemetryConsent.SendConsentEvent(OVRTelemetryConstants.OVRManager.ConsentOrigins.Legacy);
        }
  • If you're using windows, I got rid of that popup by manually adding the following entry to the registry:


    [HKEY_CURRENT_USER\SOFTWARE\Unity Technologies\Unity Editor 5.x]
    "OVRTelemetry.TelemetryEnabled"=dword:00000000

    I got to that workaround by checking the script mentioned by Riiich and digging a little more from there.

    Basically, the problem is that for some reason that new entry isn't getting created regardless of you answering that popup multiple times.

    In case that you're using a different OS, you can check the location for the EditorPrefs and do the equivalent of adding that entry to the registry under Linux/macOS

  • nayrutes's avatar
    nayrutes
    Honored Guest

    I fixed it by setting the Editor Preference Key manually:

     

    public class DisableMetaPopup: MonoBehaviour
    {
    	private const string TelemetryEnabledKey = "OVRTelemetry.TelemetryEnabled";
    	
    	[ContextMenu("DisablePopup")]
    	public void DisablePopup()
    	{
    		EditorPrefs.SetBool(TelemetryEnabledKey, false);
    	}
    }

    Just execute it once. No need to downgrade, change package files or registry entries.