sdk_availability 1.3.1 copy "sdk_availability: ^1.3.1" to clipboard
sdk_availability: ^1.3.1 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 #

Note: Fork Notice
This is a community-maintained fork of the original project. The original repository has not received any updates in over 3 years (last update: 2022). This fork has been created to continue maintenance, fix bugs, and add new features to ensure compatibility with the latest Flutter and platform versions. All contributions and issues are welcome!

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 if 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;

0
likes
0
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to detect the availability of the Google Play Services and Huawei HMS Services API on Android devices.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on sdk_availability

Packages that implement sdk_availability