You should have at least one active APK that is mapped to site 'sample.com' via a web 'intent-filter'

后端 未结 4 957
深忆病人
深忆病人 2020-12-19 10:59

Trying to upload instant application but getting this error

You should have at least one active APK that is mapped to site \'sample.com\' via a web \'

4条回答
  •  情深已故
    2020-12-19 11:53

    You are defining an Intent filter with the scheme and host:

    
    
    

    so you have to access your deep links with

    http://sample.com
    

    but this domain must be a valid domain, and this domain must be of your property because you need to add the assetlinks.json

    The website www.example.com publishes a statement list at https://www.example.com/.well-known/assetlinks.json. This is the official name and location for a statement list on a site; statement lists in any other location, or with any other name, are not valid for this site. In our example, the statement list consists of one statement, granting its Android app the permission to open links on its site:

    [{
      "relation": ["delegate_permission/common.handle_all_urls"],
      "target" : { "namespace": "android_app", "package_name": "com.example.app",
                   "sha256_cert_fingerprints": ["hash_of_app_certificate"] }
    }]
    

    Read more about it:

    https://developers.google.com/digital-asset-links/v1/getting-started#quick-usage-example

提交回复
热议问题