1

As per requirement, In iOS flutter Application, Screen capture should not be allowed in App but App allows Screenshot even when I did not give permission to Allow Screenshot, I am using this plugin flutter_windowmanager 0.2.0. For iOS I have applied secure_application and keep_screen_on plugins, too but it did not work. Basically, what I want to do is that When Screenshot Permission is allowed then it should be captured otherewise not. So please share any solution regarding how to manage Screen Capture Enable and Disable Permission specifically in flutter iOS App.

Code snippet:

Disable screenshot

await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);

Enable screenshot

await FlutterWindowManager.clearFlags(FlutterWindowManager.FLAG_SECURE);

  • You cannot disable screenshots on iOS. Disabling screenshots is relatively pointless. Cameras are a thing. Disabling screenshots gives a false sense of security – Paulw11 Sep 14 '21 at 12:00
  • Check this out https://stackoverflow.com/questions/64973346/error-flutter-flutter-h-file-not-found-when-flutter-run-on-ios – engong Sep 14 '21 at 14:47
  • @Paulw11 How does some apps offer this feature where they prevent screenshot. Pls advise. – Krunal Mar 10 '22 at 05:43

0 Answers0