Prevent Screen Capture in an iOS App

Prevent iOS from taking screen capture of app before going into background

You are on the right track. This is Apple's recommended way to do this as noted in the iOS Application Programming Guide:

Remove sensitive information from views before moving to the background. When an application transitions to the background, the system takes a snapshot of the application’s main window, which it then presents briefly when transitioning your application back to the foreground. Before returning from your applicationDidEnterBackground: method, you should hide or obscure passwords and other sensitive personal information that might be captured as part of the snapshot.

How to block screenshot when my app is active in IOS

With iOS 11 you can use UIScreen to detect when the screen is being captured. For more info follow the official documentation: Apple Documentation.

Is there a way to prevent screenshots in IOS using flutter?

You can use this package
secure_application

For IOS

The documentation of package says

Contrary to Android we create a native frosted view over your app content so that content is not visible in the app switcher. When the user gets back to the app we wait for ~500ms to remove this view to allow time for the app to woke and flutter gate to draw

Basically it hides the content on screen by making it Blurr !



Related Topics



Leave a reply



Submit