OpenFlutter / OpenFlutter/fluwx

冷启动时候无法获取标签参数

Open
#733 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.