cocos / engine-native Public
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
fix black screen when return from background #1918
Conversation
This issue happend by on some iOS devices with iOS13 by doing these operations: - lock the screen when the application is running - unlock the screen and return to the application
// will return false if lock screen when running application, which make framebuffer in invalid state. | ||
// FIXME: do binding framebuffer in other place? | ||
UIApplicationState state = [[UIApplication sharedApplication] applicationState]; | ||
if (state == UIApplicationStateBackground) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该也可以。目前的实现会出现什么问题吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
进游戏,马上最小化,好像还是会黑屏呢。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我测试过,没问题啊。
引擎版本:2.2.1 |
你说的是微信小游戏运行的问题?如果是的话,那这个 PR 不是解决这个问题的。这个 PR 解决的是Creator 发布为 iOS 原生游戏的问题。 |
哦哦,好的,那ios13上微信小游戏卡屏的问题你们能解决吗? |
这个能麻烦在论坛建立帖子详细描述一下吗?我让同事看一下。 |
可以的,我正在建立一个空的工程测试看看,然后发个帖子。 |
我测试的是2.2.2 版本也有这个问题,微信小游戏在ios13上,有时是卡8s有时是直接把微信给干退了。微信都闪退了。十分影响用户体验,求解决。 |
This issue happend by on some iOS devices with iOS13 by doing these operations: