0 votes
by (120 points)
recategorized by

Hi,

we are trying to develop a login flow on our app that require the user to enter credentials on a webpage on the pico browser and automatically redirect him to our app when login process is complete.

We registered a deeplink on android as stated in Unity documentation (https://docs.unity3d.com/Manual/enabling-deep-linking.html).

Here is the manifest as a reference:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.dtales.ourapp" xmlns:tools="http://schemas.android.com/tools" android:installLocation="preferExternal" android:versionName="1.0" android:versionCode="1">
  <supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" />
  <application tools:replace="android:theme" android:theme="@style/UnityThemeSelector" android:icon="@drawable/app_icon" android:label="@string/app_name">
    <activity android:name="com.unity3d.player.UnityPlayerActivity" android:label="@string/app_name" android:exported="true">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
      </intent-filter>
      <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <data android:scheme="ourapp" android:host="loginresult" />
      </intent-filter>
    </activity>
  </application>
</manifest>

We are able to get the user to the browser (Firefox Reality), but we are not able to get back to our application, it seems the deeplink is somehow ignored by the browser or the system.

We also double checked the correct registration of the deeplink by trying to run it via adb with the following command:

./adb shell am start -a android.intent.action.VIEW -d "ourapp://loginresult?%7B%22token%22%3A%22dqn6avtkpp3cpb1k3rfgj9fd3b%22%2C%22user_id%22%3A%221%22%2C%22fullname%22%3A%22Zgk%22%7D" com.dtales.ourapp

The exact same flow on PC seems to work correctly.

Is there something we are doing wrong? Is this a known issue? Are there any plan to fix this?
Is there any library or browser we can use to do this?

1 Answer

0 votes
by (55.5k points)

Dear developer,

The current version of Firefox Reality does not support deeplinks. We are developing our own VR browser which supports deeplinks. It is planned to deliver in Q2 next year.

...