Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

Hololens UnityWebRequest issues.

Hello guys.

I'm trying to make a Web Request with UnityWebRequest();
So far I'm using this following code called with a StartCoroutine(webRequest());

IEnumerator webRequest() {
UnityWebRequest myWr = UnityWebRequest.Get("http://jsonplaceholder.typicode.com/posts/1");
yield return myWr.Send();

    if (myWr.isError) {
        Debug.Log(myWr.error);
    } else {
        Debug.Log(myWr.downloadHandler.text);
    }
} 

I've changed both InternetClient and InternetClientServer to be active in the publishing settings, and made sure that the Hololens have working internet. The function is working fine in Unity play mode, but on hololens I get "Cannot reach destination host"

Any idéas?

/Tommy

Tagged:

Best Answer

  • Answer ✓

    I figured out my issue. Apperently after changing my Capabilities in PlayerSettings/PublishingSettings, unity didn't overide the old appxmanifest, but only created a new Temp appxmanifest which weren't in use by my app. I had to manually edit my package.appxmanifest before the capabilitys were in place.

    I assumed that unity automatically changed the package.appxmanifest after I saved my changes.

Answers

Sign In or Register to comment.