Overview

Learn how features extend the functionality of your mini program. This topic explains what features are, how to access and manage them, and how feature changes apply to your mini program.

What is a feature?

A feature represents a distinct capability you can add to your mini program. Each feature provides one or more JSAPIs that work together to deliver the feature's benefits. Features also serve as authentication mechanisms for security purposes. When you add a feature to your mini program, you gain access to its related JSAPIs.

Access types

Features have two access types, which determine the process for adding them.

  • Direct-access features: You can add them directly to your mini program.
  • Activation-needed features: You must submit an activation request to the super app for approval before you can add them.

Manage features

Use the following actions to keep your mini program's capabilities up to date:

  • Add features: Add features to access specific JSAPIs and enable new capabilities for your mini program.
  • Remove features: Remove a feature if your mini program no longer needs its capabilities. This action disables the feature's JSAPIs and minimizes maintenance effort.

How changes take effect

When you add or remove a feature, changes apply to your mini program in a target app based on its current version status as follows:

Current version status

How updates apply

New Version Created

Apply to the current version

Under Review

Depending on your choice:

  • Apply to the current version by withdrawing the release request and submitting a new one.
  • Apply to future versions only by continuing the current release process.

Pilot Testing

Apply to future versions only

Grayscale Release

Full Release

Note: After changing features, review and test your mini program to confirm the new or removed capabilities work as expected.