Add extension information to an iOS mini program

更新时间:
复制 MD 格式

When the iOS client needs to access Mini Program extension information, wrap the extension data inside launchParams when creating the Mini Program package in the console. If you skip this step, the iOS client cannot retrieve the extension information.

Retrieve extension information

After you publish a Mini Program package with extension information wrapped in launchParams, use the following code to retrieve it on the iOS client.

NAMApp *app = [NAMServiceGet() findApp:appId version:@"1.0.0.2"];
NSString *extend_info = app.extend_info;