Opening the mini program
When opening the mini program, the system will check whether there is a locally cached one. If not, it will automatically download the mini program from the remote server and then open it. If a cached version is available, the local mini program will be opened first while the system checks in the background for any new versions on the server.
Note:
If a new version is available, it will be downloaded, and the next time you open the mini program, the updated version will be used.
Start up the mini program with the given appId
appId: The ID of the mini program
Options: Startup options for the mini program
Future<void> startMiniAppWithId(String appId, MiniStartOptions? options)
Sample code:
_tcmppFlutterPlugin.startMiniAppWithId(appId!, null);
Startup options
class MiniStartOptions {
String? entryPath;
bool? isForceUpdate;
String? params;
}
Start up the mini program via the given link
Link: The URI to start up the mini program
options: The startup options for the mini program
Future<void> startMiniAppWithLink(String link, MiniStartOptions? options)
Sample code:
_tcmppFlutterPlugin.startMiniAppWithLink(appId!, null);
Was this page helpful?