Karthik Sankar
Karthik Sankar

Reputation: 13

AndroidStudio - App Link Verification is failing even when the assetlinks.json is present

As per the documentation we have published the assetlinks.json into our server at app-deeplink.domain.com/.well-known/assetlinks.json. But when verifying the same with App Link Assistant in Android Studio, it specifies that the assetlinks.json doesn't exist in the respective path.

The following checks are also verified from the server side as per the doc

  1. The assetlinks.json file is served with content-type application/json.
  2. The assetlinks.json file must be accessible over an HTTPS connection, regardless of whether your app's intent filters declare HTTPS as the data scheme.
  3. The assetlinks.json file must be accessible without any redirects (no 301 or 302 redirects).

When verifying the same with App Link Assistant in Android Studio, it specifies that the assetlinks.json doesn't exist in the respective path.

App Link Assistant (App link details window)

App Link Assitant (Declaring website association window)

While verifying the same with Statement List Tester we are getting the following error in response

********************* ERRORS *********************
* Error: unavailable: 
Error fetching statements from https://app-deeplink.*.com./.well-known/assetlinks.json (which is equivalent to 'https://app-deeplink.*.com/.well-known/assetlinks.json'): 
URL_ERROR/3 [4] while fetching Web statements from https://app-deeplink.*.com./.well-known/assetlinks.json (which is equivalent to 'https://app-deeplink.*.com/.well-known/assetlinks.json') using download from the web (ID 1).

Note: Domain has been redacted, but it'll be like app-deeplink.*.com

Upvotes: 0

Views: 93

Answers (0)

Related Questions