Current location - Quotes Website - Personality signature - Implementing Google Application Link Technology (Professional Certification)
Implementing Google Application Link Technology (Professional Certification)
App Link is a technology (deep link technology) implemented by google on Android 6.0 system. Specifically, the user can click on the webpage link to open the specified app (installed) or webpage (not installed), which can greatly improve the user experience and reduce the operation of logically judging whether the app is installed on the mobile phone on the h5 page of the server.

When the application is installed, the server address is verified (for example). After the verification is successful, when the user clicks on the similar/about webpage link, the local related page of the app can be opened (if the app is not installed, the related page can be opened).

Add relevant configuration in app AndroidManifest.xml:

Two of the key points "android:autoVerity="true" specify that this component needs deep link verification during program installation; " Android:host="m.fengjr.com "specifies the server address to be verified.

Create a new. A well-known directory under the server/root directory, and upload an assetlinks.json (some articles here specify the file name as statments.json, which is proved to be misnamed, but the correct name should be assetlinks.json). The file content format is similar:

With the method of generating assetlinks.json file:

The terminal executes the following command and enters the password of the keystore.

Copy the certificate signature content obtained by SHA256 algorithm, replace the related content in the above-mentioned assetlinks.json, and then upload the prepared assetlinks.json file to server/. Well-known catalogue.

Get the following output:

Among them, the state explains:

You can also visit google api to see if the app has passed App Links verification (it needs to climb over the wall).

If the verification is successful, the following results will be obtained:

Create a new test webpage with a text link configured as (/about/), and then click the text to open the local application.

Rendering: