Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Deep Linking on the Meta Quest Browser not working properly

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

  1. enoragon


    Sep 26, 2017
    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?