tencent cloud

Tencent Cloud Super App as a Service

문서Tencent Cloud Super App as a Service

Returning to the Mini Program

포커스 모드
폰트 크기
마지막 업데이트 시간: 2025-08-29 17:28:03
Mini programs and mini games usually run in their own separate tasks. Sometimes, pages from the superapp’s main task, like login or payment will open. You might not be able to go back to the mini program right away because the task has switched. In these cases, the superapp can use backToMiniApp to return directly to the mini program.
/**
* Returns to the specified mini program
* Common use case: When invoking a page within the superapp main task (such as payment) via a custom API, after you finish these actions,
* if there are other pages in the main task, the normal return will go back to those pages instead of the mini program page.
* You can call backToMiniApp proactively to force returning to the mini program page.
* @param appId The mini program to return to
* @param appVerType The version type of the mini program to return to
*/
public static void backToMiniApp(String appId, int verType)



도움말 및 지원

문제 해결에 도움이 되었나요?

피드백