Skip to content

v1.167.2

Choose a tag to compare

@deivid11 deivid11 released this 22 Jul 05:52

What's New

Fixed

  • Black screen after returning from the background (Android) - resuming the app from the background no longer leaves a black screen. Three recovery paths were added: the native side recreates the activity when Android reclaims the WebView's renderer process while backgrounded (previously a dead black shell); the 3D view force-restores its WebGL context and restarts the render loop when Android drops the context without firing the restore event; and the flat/DOM view nudges the WebView compositor to re-composite a layer that came back black. No wake lock or extra sockets — background battery behavior is unchanged.

Technical Details

  • MainActivity.java adds a WebViewListener.onRenderProcessGone that recreates the activity on system reclaim (returns true so the app process survives). SceneManager.recoverAfterResume force-restores the WebGL context and restarts the render loop; useWebSocketConnection wires recoverForegroundView (scene restore + a native-app-only body opacity compositor nudge) to tideAppResume and visibilitychange.
  • Android versionName/versionCode derive from package.json; APK built after the version bump and verified as versionName 1.167.2 / versionCode 1167002. 1088 tests / 89 files passing.