buttercup / buttercup-mobile

:iphone: React-Native mobile application for Buttercup
https://buttercup.pw
GNU General Public License v3.0
395 stars 71 forks source link

[Feature] Protection against screenshots/screen recording #289

Open lfom opened 2 years ago

lfom commented 2 years ago

Follow up from #273: Prevent screenshot/screen recording while using the app as a security feature (enabled by default, it would be great if there is a preference for it in settings).

On Android, you add FLAG_SECURE to the activity: https://www.geeksforgeeks.org/how-to-prevent-screenshot-or-screen-recorder-in-android/

And there is something similar to iOS: https://betterprogramming.pub/how-to-prevent-screen-capture-at-ios-14-1f01173c31c0

perry-mitchell commented 2 years ago

This looks awesome! I guess the screen capture protection would only be for iOS 14+, so some detection would have to be made as to the iOS version (as we support 12+).