Note:
The mini program package and information is cached locally for faster opening of the mini program next time. If you want to delete all information of the mini program, you can call the following API to delete a mini program or all mini programs.
Deletes all local data of the mini program with a given ID:
appId: The ID of the mini program
appVerType: The type of the mini program
version: The version of the mini program to delete
Future<void> deleteMiniAppCache(String appId,
{int appVerType = 0, String? version})
appVerType
class AppVerType {
static const int online = 0;
static const int develop = 1;
static const int preview = 2;
static const int experience = 3;
}
Sample code:
_tcmppFlutterPlugin.deleteMiniAppCache(appId!,0,'1.0.0');
Was this page helpful?