Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

Launch Oculus or Samsung browser from within a Gear VR app

avivhodavivhod Posts: 4
NerveGear
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

Comments

  • imperativityimperativity Posts: 3,587 Valuable Player
    Hi,

    This is currently not supported behavior for deep-linking in our platform. We are working to release this functionality in the near future, but there is no current ETA on this.
  • avivhodavivhod Posts: 4
    NerveGear
    Thank you for this answer.
    We will be waiting, then.


  • juscelino.tjuscelino.t Posts: 2
    NerveGear
    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,
  • imperativityimperativity Posts: 3,587 Valuable Player
    @juscelino.t

    I believe so, but that leverages Facebook infrastructure and not Oculus platform. I do not have any suggestions for the type of behavior you are looking to implement until we launch a form of deeplinking native to our platform.
  • juscelino.tjuscelino.t Posts: 2
    NerveGear
    edited November 2018
    @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.

Sign In or Register to comment.