tencent cloud

All product documents
Tencent Cloud Super App as a Service
Closing Mini Programs
Last updated: 2024-11-21 17:56:03
Closing Mini Programs
Last updated: 2024-11-21 17:56:03

Closing mini programs

Note:
Closing a mini program means only closing its page, switching the mini program to the background. It remains in memory, allowing for a quick relaunch with minimal delay.
Note
1. A mini program remains active in memory for 10 minutes after closing.
2. Up to 3 mini programs can remain active simultaneously.

1. Closing a specific mini program

/// Close a specific mini program
/// @param appID The appID of the mini program to close
- (void)closeMiniAppWithAppID:(NSString *)appID;

2. Closing current mini program

/// Close the currently running mini program
- (void)closeCurrentApplet;

3. Closing all running mini programs

/// Close all running mini programs in memory
- (void)closeAllApplications;

Terminating mini programs

Note:
Terminating a mini program means clearing it from memory. The next time it is opened, it will need to be reloaded into memory, which takes more time.

1. Terminating the specified mini program

/// Terminate the specified mini program object.
/// @param appID The appID to terminate, all versions are deleted by default.
- (void)terminateMiniAppWithAppID:(NSString *)appID;

2. Terminating the current mini program

/// Terminate the currently running mini program object.
- (void)terminateCurrentApplet.

3. Terminate all mini programs.

/// Terminate all mini programs on the stack and alive
- (void)terminateAllApplications.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support