Detect user screenshots
complete
Fernando Rojo
It's very useful in apps like Spotify, Snapchat, and Cyberdust to be able to detect when there is a screenshot.
It would be amazing to be able detect screenshots – I could see it looking something like:
ScreenshotDetector.addEventListener('screenshot', this.handleScreenshotDetector).
Perhaps for a later version, it could add the following:
ScreenshotDetector.addEventListener('screenRecordingStarted', this.handleScreenshotDetector).
ScreenshotDetector.addEventListener('screenRecordingStarted', this.handleScreenshotDetector).
Some apps even manage to change the state of the app right before the screenshot takes in order to block it from grabbing sensitive info, but I don't think that is as important for a v1.
I saw this Canny request (https://expo.canny.io/feature-requests/p/access-to-eventstream-to-disable-screenshots), but didn't feel it was clear enough.
Adam Navarro
complete
Charlie Cruzan
hey everyone- this feature is added in https://github.com/expo/expo/pull/9747/, and will be included with SDK 39 :)
Fernando Rojo
Charlie Cruzan: that’s great!
Fernando Rojo
Brent Vatne is this possible with https://docs.expo.io/versions/latest/sdk/screen-capture/?
Brent Vatne
Fernando Rojo: not exactly, but we should expand this api to support the use case of detecting screenshots
Abdulaziz Alkharashi
Just published this package using react-native-community/bob
react-native-detector, its for detecting user screenshots. if someone could guide me how to add it to expo I will be happy to add it
Fernando Rojo
Abdulaziz Alkharashi: this seems like a really straightforward application — nice! Which iOS/bare react native dependencies do you use?
Abdulaziz Alkharashi
Fernando Rojo: Thank you!
Actually there is no dependencies just native code bridged to React Native
and now we are supporting Android!
Brent Vatne I will be happy to help adding it to Expo
Randi Eka Setiawan
his is what I really want., please expo, provide this feature, hear us :-D
Chanho
This is what I really want.
Brent Vatne
Merged in a post:
Access to eventStream to disable screenshots
Charles C.
It seems that to act on things like screen shot events or to prevent them you require access to the eventStream that announces it. I don't have a full understanding of the process, but it makes sense if we can capture screenshots we should be able to block them as well (or know when they occur)
M
Mike Smith
Is there a status update for this?
Pietro di Caprio
Basically duplicated by https://expo.canny.io/feature-requests/p/detect-user-screenshots
Fernando Rojo
Pietro di Caprio: Yeah, I opted to make a new one to make sure it was clear enough.
i
idan
It's a must. Hope they will hear us
Load More
→