Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marchlqq opened this issue Apr 4, 2023 · 1 comment

Comments

@marchlqq
Copy link

marchlqq commented Apr 4, 2023

第三方插件,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,可以正常使用。

目前不清楚什么情况。

@joechan-cq
Copy link
Collaborator

目前使用PlatformView的FlutterBoostFragment,再跳转到一个FlutterBoostFragment,应该会crash的吧。
#1770

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants