Skip to content

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

@taozhixiang

Description

@taozhixiang

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 做一些事情
}

}); 这个方法在冷启动的时候里面没有执行,怎么获取微信标签传递的参数呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions