Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
julienkay's avatar
julienkay
Adventurer
6 years ago

Open URL in Oculus Browser from Unity application

The title basically says it all. Is it possible for an application to open the Oculus Browser with a specific URL? Maybe through App Deep Linking?

13 Replies

    • coernel360's avatar
      coernel360
      Honored Guest

      Application.OpenURL seems to work for Windows, but what if I am on the Quest?

      • Mohammadraza's avatar
        Mohammadraza
        Honored Guest

        Yes what should we do If We have build the apk for quest and inside the apk when when we hit the button it doesn't seems to open the web browser. Did you got any solution for this problem ? 

    • Mohammadraza's avatar
      Mohammadraza
      Honored Guest

      Application.OpenURL() I used this and it was working on PC when I hit play in unity, but when I exported the apk The link didn't opened in Quest 

  • Update: now if you open a url from your quest apk, it will automatically open oculus's meta quest browser. for me it seems to close my app after opening the browser though, so im not sure how helpful that is to you if your app closes

     

    • StorminLightEyes's avatar
      StorminLightEyes
      Explorer

      I am trying to figure out how to get it to open in the background as well, or be able to go back to the application that opened it after interacting with the browser.  If anyone has any hints, or if meta wants to listen in for future features, it would be able to interact with the browser and not close the main application that opened the browser.

  • Sammey's avatar
    Sammey
    Honored Guest

    My browser seems to open (after having to close the app) but the url used in Application.openURL("https://..") is not opened in the browser. Is anyone else here having that same issue?

    • josvdwest's avatar
      josvdwest
      Explorer

      Yes, I have the same issue. In my case, there seems to be some URLs that the Meta browser won't open, so it just opens a blank page.

  • Yes, same issue here. The OS asks to quit the Unity app, then the browser opens if you accept, but the URL is ignored.

  • I have links in my Quest app, and it's opened with this code, now in v50 it wouldn't close the app, but v51 is closing the app.  I have links to Youtube, Facebook, bit.ly, reddit and my website.

     

    Application.OpenURL(url);

     

     

  • Any update? Unity documentation says:

    Android: Due to security changes in Android 7.0 (More information), Application.OpenURL can no longer be used for opening local app files, you need to use (FileProvider) which allows you to share files with other applications.