gms_check 1.0.0 copy "gms_check: ^1.0.0" to clipboard
gms_check: ^1.0.0 copied to clipboard

outdated

This tiny plugin simply check if Google Services is avalable in the Android device.

gms_check #

This tiny plugin simply check if Google Services is avalable in the Android device.

For other platform, it always return true as default.

Usage #

  1. Call await GmsCheck().checkGmsAvailability() before runApp() in main().
Future<void> main() async {
  /// Need to call GmsCheck().checkGmsAvailability()
  /// only once before runApp function.
  await GmsCheck().checkGmsAvailability();

  runApp(const MyApp());
}
  1. Use GmsCheck().isGmsAvailable any where in the app.
@override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Text('GMS available: ${GmsCheck().isGmsAvailable}'),
        ),
      ),
    );
  }
7
likes
0
pub points
96%
popularity

Publisher

verified publishersofluffy.io

This tiny plugin simply check if Google Services is avalable in the Android device.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gms_check