alibaba / alibaba/flutter_boost

FlutterWebView 通过FlutterBoostFragment 加载以后,跳转到新界面,在返回,存在FlutterWebView不能使用的情况

Open
#1,819 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.2k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

第三方插件,InAppWeb,里面有一个 PlatformView
public class FlutterWebView implements PlatformView {
}

加载方式:
1、(正常场景)通过 FlutterBoostActivity 加载 FlutterWebView,
从 FlutterBoostActivity A 界面,跳转到 FlutterBoostActivity B,
在返回,FlutterBoostActivity A界面 里面的 FlutterWebView,可以正常使用。

2、(异常场景)编写一个正常的 FragmentActivity 加载fragment,通过 FlutterBoostFragment 的方式加载 FlutterWebView,
从 FragmentActivity A 界面,跳转到 FragmentActivity B,
在返回,FragmentActivity A界面 里面的 FlutterWebView,不能使用,但是其他的view,可以正常使用。

目前不清楚什么情况。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two navigation flows described: FlutterBoostActivity versus FlutterBoostFragment inside a FragmentActivity, using the third-party InAppWebView PlatformView. Compare the FlutterWebView lifecycle before and after returning from the second screen. Done means the original FlutterWebView remains usable after returning through the FragmentActivity flow, while other views continue to work.

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
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.