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 specific mini program or all mini programs.
Delete a specific mini program
To delete all local data of a mini program with a given ID:
appId: Mini program ID
appVerType: Mini program type
version: Mini program version to be deleted
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;
}
Example:
_tcmppFlutterPlugin.deleteMiniAppCache(appId!,0,'1.0.0');
Delete all mini programs
Future<void> clearMiniAppCache()
Example:
_tcmppFlutterPlugin.clearMiniAppCache();