
Returning a 301/302 HTTP redirect or a non-JSON Content-Type Link must return a 200 HTTP response with a JSON MIME Content-Type The asset_statements string is a JSON object that specifies theĪssetlinks.json files to load.

#GOOGLE SMART LOCK FOR PASSWORDS MAC ANDROID#
Services can access the metadata in those files:ĭeclare the association in the Android app.Īdd the following line to the manifest file under : Īdd an asset_statements string resource to the strings.xml file. Most sites can simply allow anyĪutomated agent to retrieve files in the /.well-known/ path so that other If you have a robots.txt file, it must allow the Googlebot agent to The server sends a Content-Type: application/json header in the response.Įnsure that your host permits Google to retrieve your Digital Asset Linkįile.

The MIME type for the Digital Assets Link file needs to be JSON. domain/.well-known/assetlinks.jsonįor example, if your sign-in domain is, host the JSON Host the Digital Assets Link JSON file at the following location on the $ keytool -list -v -keystore my-release-key.keystore Use the following command to generate the fingerprint: The SHA256 fingerprints of your app’s signing certificate. The package name declared in the app's manifest. The following fields identify an Android app: namespace Subdomains are not considered to match: that is, if you specify the Path in the URL, such as a trailing slash. Limit an app association to a specific subdirectory. Optional_port must be omitted when using port 443 forĪ site target can only be a root domain: you cannot The following fields identify a website: namespace The target field is an object that specifies the asset the declarationĪpplies to. To declare that apps and sites share sign-inĭelegate_permission/common.get_login_creds. The relation field is an array of one or more strings that describe the Associate your app with your websiteįor example, to declare that the website andĪn Android app with the package name com.example can share sign-inĬredentials, create a file named assetlinks.json with the following Your website's sign-in domain must be available through HTTPS. To associate an app with a website, declare associations by hosting aĭigital Asset Links JSON file on your website, andĪdding a link to the Digital Asset Link file to your app's manifest.īy hosting a Digital Asset Links declaration on your website, you also enableĭata with your app when running on Android 8.0 and newer. Users save their credentials once and then automatically sign in to both the Website-or if your app and website use federated sign-in providers suchĪs Google Sign-In-you can associate the app with the website so that

If your app that uses Smart Lock for Passwords shares a user database with your
