openApp
The openApp API is called by the super app to open a mini program with its unique ID.
Method signature
copy
Future<void> openApp(String appId,{Map<String, dynamic>? extraParams});
Request parameters
Field | Data type | Required | Description |
appId | String | Yes | The unique ID that is assigned by Mini Program Platform to identify a mini program. You can get the ID under the Mini Programs menu from the Mini Program Platform console. |
extraParams | Map<String, dynamic>? | No | This parameter is used to pass startup parameters to the IAPMiniProgram SDK to customize the behavior of a mini program during startup. |
Response parameters
N/A
Error codes
N/A
Sample
copy
IAPMiniProgram.instance.openApp('3456xxxxxxxx8337');