openUrl
The openUrl API is called by the super app to open a mini program with its URL.
Method signature
copy
Future<void> openUrl(String url, {Map<String, dynamic>? extraParams});
Request parameters
Field | Data type | Required | Description |
url | String | Yes | The scheme URL of the mini program. The URL should use the HTTP or HTTPs protocols and include the _ariver_appid, _ariver_path, and _ariver_version query string parameters. |
extraParams | Map<String, dynamic>? | No | This parameter is used to pass startup parameters to the IAPMini Program SDK to customize the behavior of a mini program during startup. |
Response parameters
N/A
Error codes
N/A
Sample
copy
IAPMiniProgram.instance.openUrl("mini:xxxxxxx");