【2025年1月2日】关于腾讯云小程序平台更名为腾讯云超级应用服务的公告
控制台更新动态
Android SDK 更新动态
iOS SDK 更新动态
Flutter 更新动态
IDE 更新动态
基础库更新动态


// 获取当前设备的 guid 信息// Get the GUID information of the current device- (NSString *)getGuid;
NSString *guid = [[TMFMiniAppSDKManager sharedInstance] getGuid]
TMAServerConfig *config = [[TMAServerConfig alloc] initWithFile:filePath];config.customizedUDID = @"customizedUDID_xxxxxxxx";[[TMFMiniAppSDKManager sharedInstance] setConfiguration:config];
// 上报用户ID,如果参数为空 则视为解绑// Report user ID,If the parameter is empty, it will be regarded as unbinding// @param customizedUserID 用户自定义 user ID - customized user ID- (void)updateCustomizedUserID:(nullable NSString *)customizedUserID;
[[TMFMiniAppSDKManager sharedInstance] updateCustomizedUserID:@"abc123"];
/*** @brief 获取 superapp 的当前用户账号标识,一般填 uin 或 openid - Get the current user account ID of the SDK host platform, usually fill in uin or openid** 注意:返回 nil 会导致 SDK 内某些缓存失效。如果没有登录,可以填个设备号 id 来避免缓存失效 - Note: Returning nil will cause some caches in the SDK to become invalid. If you are not logged in, you can fill in the device ID to avoid cache failure.*/- (NSString *_Nonnull)getAppUID;
[[TMFMiniAppSDKManager sharedInstance] startUpMiniAppWithAppID:@"mpbz0uqwzddj5zbt" scene:TMAEntrySceneNone firstPage:nil paramsStr:@"a=1&b=2" parentVC:self completion:^(NSError * _Nullable err) {}];

// ios16.4后是否开启 inspectable,可以通过 safari 进行开发调试// Whether to enable inspectable after ios16.4, you can develop and debug through safari- (BOOL)inspectableEnabled;

文档反馈