closeApp

The closeApp API is called by the super app to close mini programs with appId, the unique ID to identify a mini program.

Method signature

copy
closeApp(appId:String?)

Parameters

Name

Type

Description

Required

appId

String

Yes

The unique ID that is assigned by Mini Program Platform to identify a mini program.

Note: If the appId is empty or null, the super app will close all mini programs.

Samples

copy
Griver.closeApp(appId)