During a screen share session, the whiteboard annotations disappear when some system apps are brought to the foreground. We started noticing this as of Android 10. For an example, please see this video which shows the whiteboard annotations disappearing over the Android system settings app on Android 11.
Steps to reproduce:
Start a screen share session on a device running at least Android 10
Enable whiteboard annotations and add some to the screen share
Open the Android system settings app
Whiteboard annotations disappear
Navigate out of the Android system settings app
Whiteboard annotations reappear
Running adb shell dumpsys window windows, it looks like there's a hidden, system-level flag - HIDE_NON_SYSTEM_OVERLAY_WINDOWS - on the Android system settings window that will cause any other window that requires SYSTEM_ALERT_WINDOW to be hidden while that window is visible:
From the same command, we see a note about the Android system settings app hiding system alert windows:
Hiding System Alert Windows:
#0 Window{7ddc0ef u0 com.android.settings/com.android.settings.Settings}:
Since the cause seems external to this SDK, I'm not sure if there's anything that can be done here. Perhaps this could be noted in the documentation/codelab?
During a screen share session, the whiteboard annotations disappear when some system apps are brought to the foreground. We started noticing this as of Android 10. For an example, please see this video which shows the whiteboard annotations disappearing over the Android system settings app on Android 11.
Steps to reproduce:
Running
adb shell dumpsys window windows
, it looks like there's a hidden, system-level flag -HIDE_NON_SYSTEM_OVERLAY_WINDOWS
- on the Android system settings window that will cause any other window that requiresSYSTEM_ALERT_WINDOW
to be hidden while that window is visible:From the same command, we see a note about the Android system settings app hiding system alert windows:
Since the cause seems external to this SDK, I'm not sure if there's anything that can be done here. Perhaps this could be noted in the documentation/codelab?