ios_device_check 2.0.0+1 ios_device_check: ^2.0.0+1 copied to clipboard
Flutter plugin for accessing the iOS DeviceCheck. Only supported on iOS 11.0 or newer.
ios_device_check #
Flutter plugin for accessing the iOS DeviceCheck.
Note: DeviceCheck is only available in iOS 11.0 or newer. If plugin is invoked on unsupported platform, the error will be thrown.
Usage #
To use this plugin, add ios_device_check
as a dependency in your pubspec.yaml file.
import 'package:ios_device_check/ios_device_check.dart';
// Check whether the DeviceCheck API is available on the current device.
bool isSupported = await IosDeviceCheck.isSupported();
// Generate a token (Base64-encoded string).
String token = await IosDeviceCheck.generateToken();
Please see the API Doc for more details.