The Huawei HMS Availability plugin for Flutter enables developers to check if HMS Core is installed on an Android device. This allows apps to adapt functionality based on the presence of Huawei Mobile Services, ensuring compatibility and optimal user experience. The plugin provides a simple API to detect HMS Core availability without requiring complex native code. It's particularly useful for apps targeting the Chinese market or regions where Google Play services are unavailable. The package integrates seamlessly with Flutter projects via pub.dev.
Use cases
- Detecting HMS Core installation status
- Adapting app behavior based on HMS availability
- Supporting Huawei device users in restricted regions
- Enabling fallbacks when HMS is not available
- Building apps for the Chinese market
Key features
- Simple detection of HMS Core
- Android-only support
- Seamless Flutter integration
- Lightweight and efficient
- Officially maintained by Huawei
Suitable for
- Flutter apps targeting Huawei devices
- Developers supporting non-Google ecosystems
- Apps needing HMS Core dependency checks
- Projects in regions with limited Google services
- Huawei ecosystem development
Considerations
- Limited to Android platforms
- Does not install HMS Core—only detects it
- Requires manual handling of fallback logic
- Not applicable for iOS devices
- Dependent on Huawei's service availability