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.
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.
- google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - flutter_foreground_task
Implement and manage foreground services on Android and iOS platforms.
89Compare - safe_device
Detect jailbreak/root, emulator, mock location and other safety flags on iOS/Android devices.
87Compare - launch_app_store
Flutter plugin to leave reviews and ratings in Google Play Store and Apple App Store.
71Compare