palestine_trusted_device 0.0.1 palestine_trusted_device: ^0.0.1 copied to clipboard
Check if the device is trustworthy, rooted, jailbroken, developer mode is on, ...etc.
palestine_connection #
Lightweight internet connection test, lookup Google domain.
Part of PalestineDevelopers project
Features #
- Android/IOS security checks
Getting started #
To start, import package
import 'package:palestine_trusted_device/palestine_trusted_device.dart';
Usage #
Just as easy as this
PalestineTrustedDevice.check(
onFail: () {
developer.log('Not Secure Env - Closing App..');
},
);
Customizing checks available too
PalestineTrustedDevice.check(
checkRealDevice: true, // Android + IOS
checkDevMode: false, // Android
checkOnExternalStorage: false, // Android
checkRooted: true, // Android + IOS
onFail: () {
developer.log('Not Secure Env - Closing App..');
},
);
It's possible to await until the check is done
await PalestineTrustedDevice.check(
onFail: () {
developer.log('Not Secure Env - Closing App..');
},
);