Note:
As the mini program runs, it caches the mini program package and mini program information locally so that it can be opened more quickly next time. If you want to delete all the information of a mini program, you can call the following API to delete a mini program or delete all mini programs.
Delete all mini program caches
- (void)clearMiniAppCache;
Delete the specified mini program cache
- (void)clearCacheWithAppID:(NSString *)appID;
Deletes the specified version and type of mini program
- (void)clearCacheWithAppID:(NSString *)appID verType:(TMAVersionType)verType;
Sample code:
[[TMFMiniAppSDKManager sharedInstance] clearCacheWithAppID:appId verType:verType];
Was this page helpful?