Search code examples
androidandroid-instant-apps

Digital Asset File not found


I have generated and loaded a Google Digital Asset Links(DAL) file to https://myexample.com/.wellknown/assetlinks.json. Read and execute perms are set. The file is below:

[{
  "relation": ["delegate_permission/common.handle_all_urls"],
  "target": {
    "namespace": "android_app",
    "package_name": "com.myexample.testqiew2.app",
    "sha256_cert_fingerprints":
    ["7A:D5:67: ... :E9:5E"]
  }
}]

The robots.txt file does not block access, and I am in the US.

The AppLink Assistant in Associate website passes the first three checks but fails on the fourth with: Digital Asset Links file not found at https://myexample.com/.wellknown/assetlinks.json"

The Statement List Generator and Tester responds with "No app deeplinking permission found for com.myexample.testqiew2.app at myexample.com".

I have searched through android-instant-apps, android-studio, and android tags and haven't found other ways to prove the file I know is there is accessible.

I even tried:

https://digitalassetlinks.googleapis.com/v1/statementslist:list?source.web.site=https//quixr.com&relation=delegate_permission/common.handle_all_urls

but got a Google 404.

I have not uploaded code to the Play Store yet. I am still just trying to verify the infrastructure is in order. Is there any other way I can test why the DAL file is not being seen even though it is there?


Solution

  • After all these years I migrated to a different hosting service. I was surprised that there was no /.well-known directory with the assetlinks.json file in it. Yet the App Links Assistant worked fine and so, apparently, did the app.

    I found assetlinks.json in the /public_html directory which functions as the root for my domain. In this intervening time, it looks like the InstantApp system has accepted that location. So don't worry that you can't find .well-known.