Location>code7788 >text

HarmonyOS NEXT Minor Mode seamlessly links all apps and filters out non-age-appropriate content

Popularity:867 ℃/2024-08-29 16:24:27

contexts

With the popularization of consumer electronic products and mobile Internet, the Internet penetration rate of minors is 96.8%, and more than 80% of minors have their own Internet access devices, and how to guide their children to access the Internet correctly has always been a concern for parents. Many electronic devices and systems on the market have introduced some minor control capabilities, but parents need to go to each application to turn on the youth mode, such as Beili Beili, Mango TV, Douban and other different types of applications to set up the entrance, the process is also different. If you can turn on the minor mode of all the applications and services in the electronic device, and only display the content suitable for children to watch, in order to truly protect the children's health with the machine.

image

be tactful

HarmonyOS NEXT Minor Mode supports the implementation of HarmonyOS NEXT between all associated accounts. After completing the setup of the minor account or minor protection, simply turn on the Minor Mode in the system settings, and all the apps in the device will be synchronized with the system to switch to the Minor Mode, automatically displaying the age-appropriate content without the need for individual apps to set up individually.

At present, HarmonyOS NEXT version in Beili Beili, Mango TV, Douban and other applications have been adapted to the minors mode, the application can be through the minors mode of the three important functions to protect the children's healthy use of the phone, so that parents can rest assured that the phone to the children to use:

1. Convenient opening: the system provides a minor mode, when parents give the device to their children to use, they can open it quickly in the system entrance, which is convenient for temporary control;

2. Application linkage: Application linkage is turned on to automatically display age-appropriate content according to your child's age, so your child's health is guaranteed online;

3. Comprehensive guarding: Under the minor mode, children are provided with comprehensive guarding measures, such as allowing access to age-appropriate apps only, using stronger privacy protection, and restricting the duration of device use.

image

Developers can support the minor mode by simply accessing the Account Kit related interfaces.

Development Guide:

Account Kit opens the minor mode, the application calls the interface and then links with the system to actively switch to the minor mode, and provides age-appropriate content according to the information of the minor's age group, so as to comprehensively protect the health of minors surfing the Internet.

Development Steps:

Before proceeding with code development, make sure you have completed configuring the Client ID;

1. Import the minorsProtection module and related public modules;

2. Create a subscriber to subscribe to the system minor mode on/off event. Recommended to be called in the onCreate lifecycle of the application Ability;

3. Choose a way to get the on state of the minor mode and the age group information. When the application expects to get the result immediately, it is recommended to use the synchronous way, when the application expects to call the interface in a non-blocking way, it is recommended to use the Promise asynchronous callback way. It is recommended to call it in the aboutToAppear lifecycle of the custom component or the onCreate lifecycle of the application Ability;

4. When Minors Mode is enabled and the user needs to adjust the Minors Mode settings (e.g., content preferences, etc.) within the app, call the verifyMinorsProtectionCredential method to pull up the Verify Minors Mode Password page.

Detailed access procedures can be found on the official website

image

results-based

In order to closely follow the pace of the "Guidelines for the Construction of Mobile Internet Minor Mode (Draft for Public Opinion)" studied and drafted by the State Net Information Office, the 2024 Huawei Developer Conference (HDC) officially launched the HarmonyOS NEXT Minor Mode and synchronized the display of the user's access to applications such as Beili Beili, Mango TV, Douban, etc. after opening the Minor Mode through the system portal, which then displays that the " The teenager mode has been turned on", and the contents of the tour are all suitable contents. By supporting the ability of quick start globalization, three-party application linkage, application content level tour, etc., the juvenile mode realizes the three-party linkage of software and hardware, which facilitates the users to enter the mode quickly and creates a safe and healthy network environment for the minors.

HarmonyOS will continue to create a green and healthy mobile Internet environment for minors, provide more intelligent care with the power of technology, and escort the healthy growth of minors.