Coder Social home page Coder Social logo

google_sign_in_all_platforms's Introduction

google_sign_in_all_platforms

Very Good Ventures Very Good Ventures

Developed with 💙 by Very Good Ventures 🦄

coverage style: very good analysis License: MIT

A Very Good Flutter Federated Plugin created by the Very Good Ventures Team.

Generated by the Very Good CLI 🤖

Integration tests 🧪

Very Good Flutter Plugin uses fluttium for integration tests. Those tests are located in the front facing package google_sign_in_all_platforms example.

❗ In order to run the integration tests, you need to have the fluttium_cli installed. See how.

To run the integration tests, run the following command from the root of the project:

cd google_sign_in_all_platforms/example
fluttium test flows/test_platform_name.yaml

google_sign_in_all_platforms's People

Contributors

vishnuagbly avatar

Stargazers

Víctor avatar Shubham Singh avatar

Watchers

 avatar  avatar

google_sign_in_all_platforms's Issues

Question about how the library works

Is there a way to allow users to not have to log in every time you start the app?
With GoogleSignIn I used this code so that whenever the app got launched it remembered the user's account.
@override void initState() { super.initState(); _googleSignIn.onCurrentUserChanged.listen((GoogleSignInAccount? account) { setState(() { _isSignedIn = account != null; }); }); _googleSignIn.signInSilently(); }

clientId is not supported on Android and is interpreted as serverClientId. Use serverClientId instead to suppress this warning.

It seems there is an issue with google sign in for Android devices.

If I use the below code from the example

_googleSignIn = GoogleSignIn(
  params: const GoogleSignInParams(
    clientId: 'xxxx',
  )
);

I am getting an error PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null) and looking at the debug log it shows the message clientId is not supported on Android and is interpreted as serverClientId. Use serverClientId instead to suppress this warning.

If I use the below code

_googleSignIn = GoogleSignIn(
  params: const GoogleSignInParams(
    clientId: null,
  )
);

I am getting an error from the library that clientId is required for Android.

If I remove

        assert(
          !Platform.isAndroid || params.clientId != null,
          'For Android, clientId cannot be null',
        )

from google_sign_in_all_platforms/google_sign_in_all_platforms.dart and try with

_googleSignIn = GoogleSignIn(
  params: const GoogleSignInParams(
  )
);

then Google sign in works in Android emulator Pixel_3a_API_34_extension_level_7

I am not sure if I should create a pull request to remove the assert or not.
Please advice.

Customize messages

Hey,

Very nice plugin, thanks. Would it be possible to configure the plugin messages, like "Successfully Authenticated, You may now close this tab" ?

Thanks.

web version cannot run

org-dartlang-app:/web_plugin_registrant.dart:9:8: Error: Error when reading '/Users/aoeiuv/.pub-cache/hosted/pub.dev/google_sign_in_all_platforms_mobile-0.0.1/lib/google_sign_in_all_platforms_mobile_web.dart': No such file or directory
import 'package:google_sign_in_all_platforms_mobile/google_sign_in_all_platforms_mobile_web.dart';
       ^
org-dartlang-app:/web_plugin_registrant.dart:17:3: Error: Undefined name 'GoogleSignInAllPlatformsMobileWeb'.
  GoogleSignInAllPlatformsMobileWeb.registerWith(registrar);
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Failed to compile application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.