google_huawei_availability 1.4.0 copy "google_huawei_availability: ^1.4.0" to clipboard
google_huawei_availability: ^1.4.0 copied to clipboard

PlatformAndroid

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 #

Pub Version

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 google_huawei_availability as a dependency in your pubspec.yaml file.

Usage #


import 'package:google_huawei_availability/google_huawei_availability.dart';

TO CHECK DEVICE OTHER THAN HUAWEI
bool isGoogle = await GoogleHuaweiAvailability.isGoogleServiceAvailable;

TO CHECK IS HUAWEI DEVICE
bool isHuawei = await GoogleHuaweiAvailability.isHuaweiServiceAvailable;

18
likes
160
points
1.8k
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)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on google_huawei_availability