Forum Discussion
julienkay
6 years agoAdventurer
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
- julienkayAdventurerI guess I can answer this myself.
Application.OpenURL() seems to do the trick. No need to overcomplicate things.- coernel360Honored Guest
Application.OpenURL seems to work for Windows, but what if I am on the Quest?
- MohammadrazaHonored 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 ?
- MohammadrazaHonored 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
- muhr2Explorer
Still no solution for that?
- ShedlHonored Guest
Any feedback?
- GrahamFordExplorer
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
- StorminLightEyesExplorer
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.
- SammeyHonored 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?
- josvdwestExplorer
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.
- aaron.moffatt.5Honored Guest
Yes, same issue here. The OS asks to quit the Unity app, then the browser opens if you accept, but the URL is ignored.
- SlashAndBurnExpert Protege
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); - Oloap.92Protege
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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years agoAnonymous