Skip to content

Commit 3f8bb50

Browse files
committed
fix(demo): suppress dev console in E2E mode
1 parent 74a1c22 commit 3f8bb50

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

examples/demo/Assets/Scripts/AppBootstrapper.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,21 @@ private async void Start()
3131
{
3232
DotEnv.Load();
3333

34+
// iOS cancels in-progress touches when the OS suspends the app, and
35+
// Unity's Input System raises "Touch was already deallocated" on the
36+
// next frame. In dev builds, that pops the engine's Development
37+
// Console overlay on top of the UI and occludes subsequent test taps.
38+
// Appium's live-activity spec deliberately locks the screen mid-tap,
39+
// so suppress the overlay when E2E mode is on; the exception itself
40+
// still logs to stdout for debugging. developerConsoleEnabled
41+
// prevents future pops; developerConsoleVisible hides one that's
42+
// already showing.
43+
if (DotEnv.IsE2EMode)
44+
{
45+
Debug.developerConsoleEnabled = false;
46+
Debug.developerConsoleVisible = false;
47+
}
48+
3449
_prefs = new PreferencesService();
3550
_apiService = new OneSignalApiService();
3651

0 commit comments

Comments
 (0)