OpenFlutter / OpenFlutter/fluwx
冷启动时候无法获取标签参数
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 3.3k
- Forks
- 553
- PR merge metrics
- No merged PRs in 30d
Description
fluwx.addSubscriber((response) {
// 1. 为安卓和ios分开处理响应
if (response is WeChatShowMessageFromWXRequest) {
debugPrint("launch-app-from-h5 on android");
// 从微信启动后,在这里只为 android 做一些事情
} else if (response is WeChatLaunchFromWXRequest) {
debugPrint("launch-app-from-h5 on ios");
// 从微信启动后,在这里只为 ios 做一些事情
}
// 2. 或者为安卓和ios一起处理响应
if (response is WeChatLaunchFromWXRequest ||
response is WeChatShowMessageFromWXRequest) {
debugPrint("launch-app-from-h5");
// 从微信启动后,在这里为 android 和 ios 做一些事情
}
}); 这个方法在冷启动的时候里面没有执行,怎么获取微信标签传递的参数呢?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the fluwx.addSubscriber callback shown in the issue and trace how WeChatLaunchFromWXRequest and WeChatShowMessageFromWXRequest are delivered during cold startup. Reproduce launching the Flutter app from WeChat with tag parameters, then document or verify a path where the parameters are available before the callback handling is expected to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100