sadiq shareef
sadiq shareef

Reputation: 11

iOS app not launching on click of a url even after updating my apple-app-site-association file

I have an iOS app that launches when a url is clicked or visited. I want to add another app with this same behaviour. I have registered this new app in my apple-app-site-association file and confirmed that it is rendered correctly on my server but when I visit the url meant to launch this new app it does not.

I have tried clearing the cache and rebuilding my server but does not work.

This is my apple-app-site-association file

{
  "applinks": {
      "details": [
           {
             "appIDs": [ 
              "XB5XPLRPRC.com.devfest.bookings", // works 
              "XB5XPLRPRC.com.devfest.subscription" // does not launch app
            ],
             "paths": ["/*"]
           }
       ]
   },
   "webcredentials": {
      "apps": [ 
              "XB5XPLRPRC.com.devfest.bookings", 
              "XB5XPLRPRC.com.devfest.subscription"
      ]
   },
   "activitycontinuation": {
    "apps": [
              "XB5XPLRPRC.com.devfest.bookings", 
              "XB5XPLRPRC.com.devfest.subscription"
    ]
  }
}

Upvotes: 0

Views: 48

Answers (1)

Omotayo Obafemi
Omotayo Obafemi

Reputation: 332

The problem could be that the apple cdn has not yet gotten the latest changes of your apple-app-site-association file.

Here is what you can do to fix this issue.

Go to https://app-site-association.cdn-apple.com/a/v1/{your_domain}. Confirm that what is returned matches with your latest changes. If it does not match, then it means the apple cdn has not synced your latest changes to the cdn.

If this is the case then you have two options here:

  • Find out the next time the cache would sync your changes and wait. Once it has been refreshed, restart your device and try again.
  • Go to Settings>Developer>Associated Domains Development on your iOS device and enable it. This will cause your device to use the apple-app-site-association directly from your server instead of apple cdn. Restart your device and then try again.

Upvotes: 1

Related Questions