Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Component startup refers to the behavior of starting or connecting to an application component.
Start the PageAbility and ServiceAbility. For example, you can use startAbility().
Connect to the ServiceAbility and DataAbility. For example, you can use connectAbility() and acquireDataAbilityHelper().
To deliver a better user experience, the system restricts the following behavior:
A background application randomly displays a dialog box, such as an ad pop-up.
Background applications wake up each other. This type of behavior occupies system resources and increases power consumption, or even causes system frozen.
A foreground application randomly redirects to another application, for example, redirecting to the payment page of another application. This type of behavior poses security risks.
In view of this, the system formulates a set of component startup rules, as follows:
Before starting a component of another application, verify the visible field of the target component.
Before starting a component of a background application, verify the BACKGROUND permission.
Applications developed using the SDK of API version 8 or earlier are not restricted by this restriction when starting the ServiceAbility or DataAbility.
Before starting the ServiceAbility or DataAbility component of an application in the FA model, verify the AssociateWakeUp field of the target application.
Component startup control has been implemented since v3.2 Release.
The new component startup rules are more strict than the original ones. Get familiar with the new startup rules to prevent service exceptions.
The rules for starting components on the same device vary in the following scenarios:
Starting a PageAbility
Starting a ServiceAbility or DataAbility

The rules for starting components on a different device vary in the following scenarios:
Starting a PageAbility
Starting a ServiceAbility
