Joke Collection Website - Public benefit messages - The use of Android applications

The use of Android applications

1. What is APPLink?

You can see from the word link that this is a link. This link is used through the specified application.

2. The scenario of using APPLink

1. Start the application through the link in the SMS.

2. Start the APP through the pushed message and jump to the relevant page.

3. When interacting with H5, perform related operations through the Link parameter contained in JS.

Three. Configuration method of APPLink

Among them, host and scheme can be defined by themselves, and the uri we spliced in the above configuration is fuliang://com.fuliang.linkdemo.

We can test through another application and jump to the page in APP 1 in App2.

So, when we click the button, we will declare it according to the statement.

Usage of the above three ways of use:

1. What we should see in the short message is a hyperlink text. Click on it to match the host and scheme we set up. It is useless to enter the link directly in the browser.

2. In push, we take aurora push as an example.

We add keys and values to additional fields.

After the launch, we listened to the user's operation events in the customized BroadcastReceiver.

In the pushed message, the url parameter we passed is in the package. The rule we define is to pass the pushed additional parameters as json strings. The received json is parsed into the corresponding uri, and then we jump to the homepage of the APP, and then jump to the corresponding ACTION_VIEW. Here we default that the application is active. In practical APPlication, we should first judge whether the app is alive or not. If it is alive, we should use this method. If it is not alive, we should start the app first, and then analyze the corresponding parameters for processing.

3. Use links through H5 interaction

Settings in webview:

The corresponding text of H5 is:

These are common ways to use link.