Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Deep Linking on the Meta Quest Browser not working properly

Discussion in 'VR' started by enoragon, Apr 3, 2023.

  1. enoragon

    enoragon

    Joined:
    Sep 26, 2017
    Posts:
    4
    I am trying to test deep linking but I am running into some weird results.

    Code (CSharp):
    1. <intent-filter android:label="@string/app_name">
    2.             <action android:name="android.intent.action.VIEW" />
    3.             <category android:name="android.intent.category.DEFAULT" />
    4.             <category android:name="android.intent.category.BROWSABLE" />
    5.             <data android:scheme="scheme"
    6.                   android:host="host"
    7.                   android:pathPrefix=""
    8.                 />
    9.         </intent-filter>
    I have my android manifest set up with the correct intent filter and I can verify this by building the app in android and clicking the deep link on my phone. That works.

    However, after building to quest, when I open the webpage that hosts my deep links and click on of the links, it doesn't work.

    The strange part is that if I use ADB to launch my website that is holding these deep links, then I am able to click on the link and it will work to open the app.

    I run this command

    adb shell am start -a android.intent.action.VIEW -d http://www.{hosted-links}.com

    and then I am able to follow the links to the app.

    so what is different
    Like would doing this "android.intent.action.VIEW " prep the browser in a way that just going to the site doesn't?
     
  2. Alex_Heizenrader

    Alex_Heizenrader

    Joined:
    May 16, 2019
    Posts:
    97
    Any ideas, can we do deeplinking with the meta browser?
     
  3. Deltigre

    Deltigre

    Unity Technologies

    Joined:
    Sep 13, 2022
    Posts:
    37
    Since the ADB functionality appears to work, I would ask Meta or on the Meta forums for more information on the Meta browser functionality with regards to deep linking, since it implies the other functionality is working properly outside of it.