- 多端应用 iOS端app不能分享小程序卡片消息?
由于服务器443端口被占用,无法配置Universal Links在443端口,但是其他端口有正常配置。但是app分享小程序卡片消息非常慢,即使图片大小在app限制内大约整个过程持续三四分钟,且分享的网页消息,网络图片无法正常加载,但是本地图片可以。
2024-12-18 - 非多端应用iOS端分享小程序消息分享使用教程步骤设置hdImageData,无法分享bug
WXMiniProgramObject *object = [WXMiniProgramObject object]; object.webpageUrl = webpageUrl; object.userName = userName; object.path = path; object.hdImageData = hdImageData; object.withShareTicket = withShareTicket; object.miniProgramType = programType; WXMediaMessage *message = [WXMediaMessage message]; message.title = @"小程序标题"; message.description = @"小程序描述"; message.thumbData = nil; //兼容旧版本节点的图片,小于32KB,新版本优先 //使用WXMiniProgramObject的hdImageData属性 message.mediaObject = object; SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init]; req.bText = NO; req.message = message; req.scene = WXSceneSession; //目前只支持会话 [WXApi sendReq:req];WXMiniProgramObject *object = [WXMiniProgramObject object]; object.webpageUrl = webpageUrl; object.userName = userName; object.path = path; object.hdImageData = hdImageData; object.withShareTicket = withShareTicket; object.miniProgramType = programType; WXMediaMessage *message = [WXMediaMessage message]; message.title = @"小程序标题"; message.description = @"小程序描述"; message.thumbData = nil; //兼容旧版本节点的图片,小于32KB,新版本优先 //使用WXMiniProgramObject的hdImageData属性 message.mediaObject = object; SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init]; req.bText = NO; req.message = message; req.scene = WXSceneSession; //目前只支持会话 [WXApi sendReq:req];https://developers.weixin.qq.com/miniprogram/introduction/ 使用上述代码,hdImageData为app本地图片,png/jpg/jpeg格式图片、宽高比5:4,大小50几KB分享过程持续5分钟,13KB分享过程30几秒,整个用户体验很差。
2024-12-04 - iOS app部分机型无法正常拉起微信小程序
WXLaunchMiniProgramReq *request = [[WXLaunchMiniProgramReq alloc] init]; request.userName = @"gh_aab39b5699a9";//拉起的小程序的username request.path = @""; request.miniProgramType = 0; [WXApi sendReq:request completion:^(BOOL success) { if (success) { DLog(@"成功拉起微信"); } else { } }];
2024-11-27 - iOS 分享微信小程序卡片,hdImageData 128kb内,分享卡顿
WXMiniProgramObject *object = [WXMiniProgramObject object]; object.webpageUrl = webpageUrl; object.userName = userName; object.path = path; object.hdImageData = hdImageData; object.withShareTicket = withShareTicket; object.miniProgramType = programType; WXMediaMessage *message = [WXMediaMessage message]; message.title = @"小程序标题"; message.description = @"小程序描述"; message.thumbData = nil; //兼容旧版本节点的图片,小于32KB,新版本优先 //使用WXMiniProgramObject的hdImageData属性 message.mediaObject = object; SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init]; req.bText = NO; req.message = message; req.scene = WXSceneSession; //目前只支持会话 [WXApi sendReq:req];
2024-11-22 - wx:for 在模拟器上正常显示,为什么真机上会重叠在一起?
关键代码[图片] 模拟器上的效果 [图片] 真机上的效果 [图片]
2019-11-20