Skip to content
pubscout

google_huawei_availability

1.4.0, released 5 years ago by an unverified publisher

Detect Google Play Services and Huawei HMS Services availability on Android devices.

WASM-ready
$ flutter pub add google_huawei_availability
Source repository

What it does

A Flutter plugin that allows developers to detect the availability of Google Play Services and Huawei HMS Services API on Android devices. It can also be used to check if a device is manufactured by Huawei.

AI-written summary of version 1.4.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to check if Google Play Services are available on an Android device
  • You need to verify if the app is running on a Huawei device with HMS services
  • You are handling platform-specific service availability checks

Skip it when

  • You are targeting non-Android platforms exclusively
  • You need a complete device information and sensor suite rather than just service availability

Strengths

  • Simple and straightforward API for checking Google and Huawei services
  • Helps identify Huawei devices easily

Weaknesses

  • Limited functionality restricted only to service availability checks
  • Only works on Android devices

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
0

Add the dependency to pubspec.yaml and use it directly on Android.

import 'package:google_huawei_availability/google_huawei_availability.dart';

bool isGoogle = await GoogleHuaweiAvailability.isGoogleServiceAvailable;
bool isHuawei = await GoogleHuaweiAvailability.isHuaweiServiceAvailable;

Alternatives

Packages that do the same job and could replace google_huawei_availability.