HBRecorder icon indicating copy to clipboard operation
HBRecorder copied to clipboard

Android 15 identify Screen Sharing Protection.

Open jerinjohnk opened this issue 8 months ago • 0 comments

In our react native app, we are using react-native-record-screen. This is a wrapper created around HBrecorder. In recent versions of Android, blank videos are appearing. According to our findings, we believe it's being caused by the new security feature being rolled out by OnePlus, Vivo, and Xiaomi, which have added a new functionality.

During Screen sharing, you can block specific apps and notifications. This feature is available in "Settings - Security & privacy - Screen sharing protection".

https://community.oneplus.com/thread/1860320762070564868

Whenever a notification of screen sharing appears, it blocks the notification tray or the whole screen from being captured.

  1. How can we identify when this notification pops up in our app so that we can ask users to record the screen after disabling this feature again?

  2. Is there any code by which we can opt out of this, or identify which devices are eligible to show this update?

It shouldn't be a wrapper issue. As OS settings are blocking it, it should be occurring in native Android apps using HBrecorder. Has anyone else faced this issue?

jerinjohnk avatar Jun 24 '25 21:06 jerinjohnk