Search code examples
iosreact-nativeexpomobile-developmentapple-appclips

Getting an error when I try to set up my Advanced AppClip experience


I am new to app clip development on iOS and I am trying to set up the app clip experience of my iOS app built with React Native Expo.

I clicked on the Edit Advanced Experiences button on the Distribution page, but whenever I enter the url associated with my AASA file I get the error below

this url is not contained in your app’s associated domains. update associated domains or use a different url.

app clip error

I have checked and double checked my AASA file and I cannot seem to find anything wrong. It is important to note that the app works when installed on an iOS device and launched via a url so I don't think the issue is from my AASA file.

regardless, here is how my AASA file looks like

{
  "applinks": {
      "details": [
           {
             "appIDs": [ 
              "XB5XPLRPRC.com.tecprods.tecprodsapp", 
              "XB5XPLRPRC.com.tecprods.tecprodsapp.Clip"
            ],
             "paths": ["/*"]
           }
       ]
   },
   "webcredentials": {
      "apps": [ 
              "XB5XPLRPRC.com.tecprods.tecprodsapp", 
              "XB5XPLRPRC.com.tecprods.tecprodsapp.Clip"
      ]
   },
   "activitycontinuation": {
    "apps": [
              "XB5XPLRPRC.com.tecprods.tecprodsapp", 
              "XB5XPLRPRC.com.tecprods.tecprodsapp.Clip"
    ]
  },
  "appclips": {
        "apps": [
              "XB5XPLRPRC.com.tecprods.tecprodsapp.Clip"
        ]
    }
}

Solution

  • You are most likely experiencing this issue because appclips is missing from your associatedDomains in your entitlements file. You probably only have applinks in your entitlements file.

    Since your app was built with React Native Expo, to fix this

    • Go to your app.config.js or app.config.json file and search for associatedDomains. It should be a property of the ios object.
    • Make sure appclips is part of the array. i.e ['applinks:www.techprods.com', 'appclips:www.techprods.com']. You most likely only have ['applinks:www.techprods.com']
    • Regenerate your iOS files with the expo prebuild command. Deploy to AppStore and try again. This should fix the issue