Deep links without a custom scheme not working on Android

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): Android

I have set up intentFilters as instructed in the docs, I tried testing with Expo in dev mode (using the exp:// scheme) and it worked fine, but when I build a standalone app, install the app and try pressing a link with the matching url, it goes straight to the browser and disregards the fact it’s a deep link.

My app.json:

{
  "expo": {
    "name": "app-name",
    "slug": "app-slug",
    "privacy": "public",
    "sdkVersion": "35.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "splash": {
      "image": "./assets/splash.png",
      "resizeMode": "cover",
      "backgroundColor": "#ffffff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": false,
      "bundleIdentifier": "com.imaot.imaot",
      "associatedDomains": ["applinks:app.imaot.co.il"]
    },
    "android": {
      "package": "com.imaot.imaot",
      "intentFilters": [
        {
          "action": "VIEW",
          "data": [
            {
              "scheme": "https",
              "host": "*.app.imaot.co.il",
              "pathPrefix": "/recipes/*"
            },
            {
              "scheme": "https",
              "host": "*.app.imaot.co.il",
              "pathPrefix": "/tips/*"
            },
            {
              "scheme": "https",
              "host": "*.app.imaot.co.il",
              "pathPrefix": "/questions/*"
            },
            {
              "scheme": "https",
              "host": "*.app.imaot.co.il",
              "pathPrefix": "/cookbooks/*"
            },
            {
              "scheme": "https",
              "host": "*.app.imaot.co.il",
              "pathPrefix": "/articles/*"
            }
          ],
          "category": [
            "BROWSABLE",
            "DEFAULT"
          ]
        }
      ]
    }
  }
}

I solved the issue by replacing the data array with an object, removing the *. prefix to the host and eliminating pathPrefix entirely

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.