sdk_availability 1.5.2
sdk_availability: ^1.5.2 copied to clipboard
A Flutter plugin to detect the availability of the Google Play Services and Huawei HMS Services API on Android devices.
Google and Huawei Service Availability #
A Flutter plugin to detect the availability of the Google Play Services and Huawei HMS Services API on Android devices. It can also be used to check the device is a Huawei device or not.
Installing #
To use this package, add sdk_availability as a dependency in your pubspec.yaml file.
Usage #
import 'package:sdk_availability/sdk_availability.dart';
TO CHECK DEVICE OTHER THAN HUAWEI
bool isGoogle = await GoogleHuaweiAvailability.isGoogleServiceAvailable;
TO CHECK IS HUAWEI DEVICE
bool isHuawei = await GoogleHuaweiAvailability.isHuaweiServiceAvailable;