Developer

Availability

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.


Installation

dart pub add eit_service_availability --hosted-url=https://gitea.whitelabel.mobile.embedit.dev/api/packages/platform/pub/

!IMPORTANT You need access token for fetching from private pub repository. ELI add token automatically

Usage


import 'package:eit_service_availability/eit_service_availability.dart';

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

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

!TIP set value to the local storage or AppState object on app start. Then you can use value without async/await


Copyright © 2025. All rights reserved.