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
Fatal Error: Unexpectedly Found Nil While Unwrapping an Optional Values
Objective-C Arc: Strong VS Retain and Weak VS Assign
Uiscrollview Scrollable Content Size Ambiguity
Programmatically Set the Initial View Controller Using Storyboards
How to Localise a String Inside the iOS Info.Plist File
Uiimage(Contentsoffile:) Returning Nil Despite File Existing in Caches Directory
Xcode 6 Bug: Unknown Class in Interface Builder File
Swift: Extra Argument 'Error' in Call
Create Singleton Using Gcd'S Dispatch_Once in Objective-C
Can't Use Swift Classes Inside Objective-C
Ios 9 Xcode 7 - Application Appears With Black Bars on Top and Bottom
Iphone 6 Plus Resolution Confusion: Xcode or Apple'S Website? For Development
Redirect to Application If Installed, Otherwise to App Store
Check If There Is an Emoji Contained in a String
How to Prevent Tableview Section Head from Sticking While Scrolling