LibGDX displays black screen while app is paused but still visible (e.g. during in-app purchase password dialog) on iOS

北城余情 提交于 2019-12-13 07:43:32

问题


I converted one of my apps over to LibGDX.

In the earlier version, when I launch an in-app purchase and iOS shows the dialog to ask the user for their password, my app would stay visible and running (animations would update) in the background behind the dialog.

After the switch to LibGDX (and no other changes regarding purchasing), the app now disappears and the background behind the password dialog is just black. Right before this happens, LibGDX reports [debug] IOSApplication: paused and right when my app comes back to life, I get the message [debug] IOSApplication: resumed.

Is there any way to have LibGDX keep updating my app's screen while it's paused (preferably only if it is still partially visible, though), or at least keep displaying the last drawn frame rather than switching to black?

PS: I have continuous rendering turned off.


回答1:


I found a way to fix the problem: Get rid of LibGDX.

Here's how: https://stackoverflow.com/a/35094695/1217178

Disclaimer:
Clearly this isn't a true answer to the original question, but unfortunately I don't have the time to go hunting for bugs in libGDX, especially since my app is almost 1MB (15%) smaller and starts faster without it, too. But if someone else comes across this issue and figures it out, please do post your answer and I will accept it instead of this one.



来源:https://stackoverflow.com/questions/31928305/libgdx-displays-black-screen-while-app-is-paused-but-still-visible-e-g-during

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!