cancel
Showing results for 
Search instead for 
Did you mean: 

Launch Oculus or Samsung browser from within a Gear VR app

avivhod
Explorer
Dear all
I searched a bit and didn't find an answer, so if someone already asked, please lead me to it.
When I am in my unity based app, I want to be able to launch a link to any site, but make it launch in the Oculus or Samsung browser while still with my goggles on.
When exiting the browser, I want to be back in my app.
The browser should launch in 2D mode, and continue so, unless the user goes stereoscopic.

Can this be done?

Thanks

3 REPLIES 3

avivhod
Explorer
Thank you for this answer.
We will be waiting, then.


juscelino_t
Honored Guest
Hi @imperativity,

Does the Platform.ShareToFacebook work as deep-link? I need something like that but to launch the web browser to authenticate on services like Google or Dropbox.. even for Facebook.. do you have any suggestion on this?

Thanks,

juscelino_t
Honored Guest
@imperativity
I just found a way to launch Oculus Browser and it is actually launching the URI I request:

PackageManager manager = mContext.getPackageManager();
try {
Intent i = manager.getLaunchIntentForPackage("com.oculus.vrshell");
i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
i.setData(Uri.parse("apk://com.oculus.browser"));
i.putExtra("uri", url);
mContext.startActivity(i);
} catch (ActivityNotFoundException e) {
}
The only problem for cases like Google Services authentication, which opens an URI for launching an app, is that it is not actually launching the App. It seems that Oculus Browser gets the URI but it doesn't handle the behaviour itself. Do you think it is possible to add this feature on the Oculus Browser. It would be a amazing feature and we could create complete experiences in VR.