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

Android上Flutter页面回收重启问题 #157

Closed
shingohu opened this issue Feb 1, 2021 · 2 comments
Closed

Android上Flutter页面回收重启问题 #157

shingohu opened this issue Feb 1, 2021 · 2 comments
Assignees

Comments

@shingohu
Copy link

shingohu commented Feb 1, 2021

Describe the bug
Android上由于Activity在后台时候会被系统回收,下次打开时会重启原有界面,非Flutter页面没有问题,
但是在Flutter页面的时候回收重启时,原有的页面路由不会恢复,出现了NavigatorMeterialApp中设置的home界面

To Reproduce
1.打开demo->push flutter1
2.退到后台,操作其它app一段时间(具体看系统内存,垃圾手机比较容易出现)
3.再次点开demo

期望结果:回收重启后Flutter路由可以还原

@foxsofter
Copy link
Owner

已修复,pub 1.8.0 试试看

@foxsofter foxsofter reopened this Feb 18, 2021
@foxsofter
Copy link
Owner

这个问题是,开发者设置中开启:不保留后台进程,保留Activity 两个选项后可复现,现象是进程资源已经被释放了,但 Activity 在下次启动时被恢复了,但进程的资源并不存在,导致停留在加载页

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