harmony 鸿蒙Overview of Application Redirection

  • 2025-06-06
  • 浏览 (2)

Overview of Application Redirection

Application redirection enables users to jump from one application to another to transfer data or perform a specific action. It improves the convenience and smoothness of user interactions.

Use Cases

Application redirection is widely used in social media sharing and marketing promotions. Examples are as follows:

  • Social media sharing: In social apps, sharing links like location details, food recommendations, shopping deals, or game invites allows for a quick redirection to the relevant navigation, food, shopping, or gaming applications through these links.
  • Marketing promotions: On platforms like video applications, social media applications, and web browsers, embedding links to applications being promoted (presented as text, widgets, or videos) enables users to navigate directly to specific pages within the target application. Additionally, including these promotional links in SMS messages or emails allows users to access specific pages within the target application directly through the provided links.

Two Types of Application Redirection

  • Starting a Specified Application: The caller application specifies the target application by specifying either an application link and an ability.

    NOTE

    Since API version 12, it is not recommended that third-party applications start other applications by specifying an ability (implicit Want mode). For details about how to switch from the implicit Want mode to the linking mode, see Switching from Explicit Want Redirection to Linking Redirection.

    • Specifying an application link (recommended): Use openLink or startAbility to specify an application link and start the target application page.

    • Specifying an ability (not recommended): Use startAbility to specify an ability and explicitly start the target application page. This is the explicit Want mode.

  • Starting an Application of the Specified Type: The caller application starts a vertical domain panel based on the specified application type. The panel displays all the vertical applications that can handle the intent, and users can choose to open one of them.

Typical Scenario: Starting a System Application

Starting a system application is a typical scenario of application redirection. The system provides some capabilities and interfaces for you to quickly implement system application redirection while ensuring access security. For details, see Starting a System Application.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙Obtaining Reasons for Abnormal Application Exits

harmony 鸿蒙UIAbility Backup and Restore

harmony 鸿蒙Using Explicit Want to Start an Application Component

harmony 鸿蒙Introduction to Ability Kit

harmony 鸿蒙AbilityStage Component Container

harmony 鸿蒙Accessing a DataAbility

harmony 鸿蒙Accessing a DataShareExtensionAbility from the FA Model

harmony 鸿蒙Common action and entities Values (Not Recommended)

harmony 鸿蒙API Switching Overview

0  赞