This topic describes how to remotely manage a specific mini program, update all mini programs, and set the update frequency of mini program packages.
Update a specific mini program actively
Interface description
@interface MPNebulaAdapterInterface : NSObject /** * * Note: * Before 9.9.9: After the request is successful, the offline package will be automatically downloaded under Wifi. If it is not Wifi, only the offline package with auto_install set to YES will be downloaded. * 9.9.9 and later: The download timing can be configured for each application, through server configuration, and the default is WIFI download. * * @param params Request list format: {appid:version}, multiple appids can be passed. If version is not specified, it will be passed empty. The highest version will be taken by default. * Supports fuzzy matching of version numbers, e.g. '*' matches the highest version number '1.*' matches version numbers starting with 1, total highest version number, etc., up to 4 digits */ -(void)requestNebulaAppsWithParams:(NSDictionary)Sample code
[[MPNebulaAdapterInterface shareInstance] requestNebulaAppsWithParams:@{@"2020012000000001":@"*"} finish:^(NSDictionary *data, NSError *error) { if (!error) { NSLog(@"[mpaas] nebula rpc data :%@", data[@"data"]); dispatch_async(dispatch_get_main_queue(), ^{ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"message" message:[NSString stringWithFormat:@"Updated:%@", data[@"data"]] delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok", nil]; [alert show]; }); } }];
Update all mini programs actively
Interface description

Sample code
[[MPNebulaAdapterInterface shareInstance] requestAllNebulaApps:^(NSDictionary *data, NSError *error) { if (!error) { NSLog(@"[mpaas] nebula rpc data :%@", data[@"data"]); dispatch_async(dispatch_get_main_queue(), ^{ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"message" message:[NSString stringWithFormat:@"Updated:%@", data[@"data"]] delegate:nil cancelButtonTitle:nil otherButtonTitles:@"ok", nil]; [alert show]; }); } }];
Set the update frequency of mini program packages
By default, each time you open an application, the mini program SDK attempts to check for an updatable version. To reduce the pressure on the server, this check has a time limit. The default time interval is 30 minutes. To adjust the frequency of mini program package updates, you can call the following API operation:
Interface description

Sample code
// Set the update frequency to 10 min. [MPNebulaAdapterInterface shareInstance].nebulaUpdateReqRate = 600;