目录

Deep Links

Overview

You can use a standard deep link to redirect a user to the quick app from a web page.

  • Deep links cannot start or end with a space.
  • Deep links to a quick app cannot be used in SMS messages.
  • Deep link redirection does not support callback upon a failure. If you use deep link redirection on a web page, maintain the fallback to ensure that an appropriate HTML5 page is available to provide services for users when the redirection is not performed.

You can use deep links after installing Huawei Quick App Center.

Supported Formats

Deep link formats:

  • Deep links starting with hap are recommended for starting quick apps from other quick apps. Deep links starting with https will be opened as web pages.
  • Deep links starting with hwfastapp are supported only by Huawei phones.

Parameter

Description

package

App package name. This parameter is mandatory.

path

Path of an in-app page. This parameter is optional. The default value is the home page.

key-value

Parameter to be passed to the page. This parameter is optional. Multiple key-value pairs are allowed. The passed data may be obtained by other apps. Therefore, you are advised not to pass highly sensitive data.

Sample Code

Different lifecycle functions are triggered when a page is opened through the deep link:

The target page can obtain passed parameters through onRefresh or onShow.

Links

[h2]FAQs

[h2]Cases