In this blog, we shall learn how to build a secured app that doesn’t allow screenshots, video recording of the app. Also when the user exits the app temporarily he has to pass local auth i.e. fingerprint to access the app content.
Safety and privacy of the user’s data have become very important, also very frequently we hide our phone when we are dialing any private content eg. Bank Details, messages, etc to protect our content from the nearby people. We can now close our app temporarily and next time anyone opens it he won’t be able to access ore content neither he can take screenshots and record video.
We shall use secure_application package to implement the functionality of “no screenshots”, “no video recording”, “prevent unauthorized access”.
_To prevent unauthorized access we shall use the __local_auth _package to provide a gateway to get the access the app content as many times the user closes the app temporarily.
Note: secure_application proves us a blur screen to prevent unauthorized access and we will use local_auth logic to pass the authentication. You will understand better while we will build logic.
Setting up our project::
Edit your Android Manifest file.
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
import:
import 'package:local_auth/auth_strings.dart';
import 'package:local_auth/local_auth.dart';
import 'package:secure_application/secure_application.dart';
#security #mobile-app-development #flutter