ios_device_check 1.3.0 ios_device_check: ^1.3.0 copied to clipboard
Flutter plugin for accessing the iOS DeviceCheck.
ios_device_check #
Flutter plugin for accessing the iOS DeviceCheck.
NOTE
The DeviceCheck API 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.