Search code examples
androidapplinks

Android handling app links internal network


Is there any specific reason why the app linking is not working (status is always undefined) if the assetlinks.json located at internal network.

I mean I wonder about how this app linking is working? Is verification of assetlinks.json file handling by Google or App verifies this file by fetching it from the host defined at Android manifest by itself?


Solution

  • The assetlinks.json file is verified by each local device, but Android is strict about the criteria for what qualifies as a valid file. Specifically:

    1. Any response from the server besides HTTP 200 is treated as an error.
    2. The certificate chain that must be verified, with a trusted root.

    (Source: https://developers.google.com/digital-asset-links/v1/create-statement#website_statement_file)

    Since you're hosting the file on an internal network, it's quite likely one (I'd guess the second) of these criteria is not being met.