- flutter调起小程序的问题?
[图片] String appId = 'xxxx'; String path = 'pages/index/index'; final wxUrl = 'weixin://dl/business/?appid=$appId&path=$path'; // clogE(wxUrl); final Uri url = Uri.parse(wxUrl); if (!await launchUrl(url, mode: LaunchMode.externalApplication)) { throw Exception('Could not launch $url'); }目前使用的是url_launcher,打开后显示如图所示,当前页面无法访问 [图片] 经确认appid没问题,小程序已经正式发布,路径也没问题,但还是如图1页面无法访问。 个人猜测是不是小程序本身不支持转发和复制链接,会不会导致这样的问题出现。 [图片]
2023-07-19 - flutter如何调起微信小程序?
String appId = 'xxxx'; [图片] String path = '/'; final url = 'weixin://dl/business/?appid=$appId'; //&path=$path if (await canLaunch(url)) { await launch(url); } else { throw '无法打开微信小程序'; } 目前使用的是url_launcher,打开后显示如图所示,当前页面无法访问
2023-07-18 - 微信分享,卡在好友列表,签名也有,不知道怎么回事?
E/Instrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory java.lang.Throwable at android.app.Instrumentation.getFactory(Instrumentation.java:1266) at android.app.Instrumentation.newActivity(Instrumentation.java:1257) at com.tencent.mm.splash.k.newActivity(SourceFile:61) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3676) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3952) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2386) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8169) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
2020-04-01