Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Google Sign In 4.5.1 - ServerAuthCode returns null value #57712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Faiyyaz opened this issue May 21, 2020 · 34 comments
Closed

Google Sign In 4.5.1 - ServerAuthCode returns null value #57712

Faiyyaz opened this issue May 21, 2020 · 34 comments
Labels
assigned for triage issue is assigned to a domain expert for further triage c: new feature Nothing broken; request for a new capability found in release: 1.19 Found to occur in 1.19 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: google_sign_in The Google Sign-In plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically platform-ios iOS applications specifically r: fixed Issue is closed as already fixed in a newer version

Comments

@Faiyyaz
Copy link

Faiyyaz commented May 21, 2020

The serverauthcode still coming null in the new version of plugin.

GoogleSignIn _googleSignIn = GoogleSignIn(
      scopes: [
        'email',
       'https://www.googleapis.com/auth/contacts.readonly',
       'https://mail.google.com',
      ],
    );
    try {
      GoogleSignInAccount googleSignInAccount = await _googleSignIn.signIn();
      GoogleSignInAuthentication googleSignInAuthentication =
          await googleSignInAccount.authentication;
      String code = googleSignInAuthentication.serverAuthCode;
      print(code);
    } catch (error) {
      print(error);
    }

Flutter doctor

[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.15.4 19E287, locale en-GB)
    • Flutter version 1.17.1 at /users/faiyyazkhatri/StudioProjects/flutter
    • Framework revision f7a6a7906b (8 days ago), 2020-05-12 18:39:00 -0700
    • Engine revision 6bc433c6b6
    • Dart version 2.8.2

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /users/faiyyazkhatri/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /users/faiyyazkhatri/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • 690EC0B1-6D79-42BE-8447-4746C5E2FAAD • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

• No issues found!
@TahaTesser
Copy link
Member

Code Sample
// Copyright 2019 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// ignore_for_file: public_member_api_docs

import 'dart:async';
import 'dart:convert' show json;

import "package:http/http.dart" as http;
import 'package:flutter/material.dart';
import 'package:google_sign_in/google_sign_in.dart';

GoogleSignIn _googleSignIn = GoogleSignIn(
  scopes: <String>[
    'email',
    'https://www.googleapis.com/auth/contacts.readonly',
  ],
);

void main() {
  runApp(
    MaterialApp(
      title: 'Google Sign In',
      home: SignInDemo(),
    ),
  );
}

class SignInDemo extends StatefulWidget {
  @override
  State createState() => SignInDemoState();
}

class SignInDemoState extends State<SignInDemo> {
  GoogleSignInAccount _currentUser;
  String _contactText;

  @override
  void initState() {
    super.initState();
    _googleSignIn.onCurrentUserChanged.listen((GoogleSignInAccount account) {
      setState(() {
        _currentUser = account;
      });
      if (_currentUser != null) {
        _handleGetContact();
      }
    });
    _googleSignIn.signInSilently();
  }

  Future<void> _handleGetContact() async {
    setState(() {
      _contactText = "Loading contact info...";
    });
    final http.Response response = await http.get(
      'https://people.googleapis.com/v1/people/me/connections'
      '?requestMask.includeField=person.names',
      headers: await _currentUser.authHeaders,
    );
    if (response.statusCode != 200) {
      setState(() {
        _contactText = "People API gave a ${response.statusCode} "
            "response. Check logs for details.";
      });
      print('People API ${response.statusCode} response: ${response.body}');
      return;
    }
    final Map<String, dynamic> data = json.decode(response.body);
    final String namedContact = _pickFirstNamedContact(data);
    setState(() {
      if (namedContact != null) {
        _contactText = "I see you know $namedContact!";
      } else {
        _contactText = "No contacts to display.";
      }
    });
  }

  String _pickFirstNamedContact(Map<String, dynamic> data) {
    final List<dynamic> connections = data['connections'];
    final Map<String, dynamic> contact = connections?.firstWhere(
      (dynamic contact) => contact['names'] != null,
      orElse: () => null,
    );
    if (contact != null) {
      final Map<String, dynamic> name = contact['names'].firstWhere(
        (dynamic name) => name['displayName'] != null,
        orElse: () => null,
      );
      if (name != null) {
        return name['displayName'];
      }
    }
    return null;
  }

  Future<void> _handleSignIn() async {
    try {
      GoogleSignInAccount googleSignInAccount = await _googleSignIn.signIn();
      GoogleSignInAuthentication googleSignInAuthentication =
          await googleSignInAccount.authentication;
      String code = googleSignInAuthentication.serverAuthCode;
      print('serverAuthCode: $code');
    } catch (error) {
      print(error);
    }
  }

  Future<void> _handleSignOut() => _googleSignIn.disconnect();

  Widget _buildBody() {
    if (_currentUser != null) {
      return Column(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: <Widget>[
          ListTile(
            leading: GoogleUserCircleAvatar(
              identity: _currentUser,
            ),
            title: Text(_currentUser.displayName ?? ''),
            subtitle: Text(_currentUser.email ?? ''),
          ),
          const Text("Signed in successfully."),
          Text(_contactText ?? ''),
          RaisedButton(
            child: const Text('SIGN OUT'),
            onPressed: _handleSignOut,
          ),
          RaisedButton(
            child: const Text('REFRESH'),
            onPressed: _handleGetContact,
          ),
        ],
      );
    } else {
      return Column(
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        children: <Widget>[
          const Text("You are not currently signed in."),
          RaisedButton(
            child: const Text('SIGN IN'),
            onPressed: _handleSignIn,
          ),
        ],
      );
    }
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: const Text('Google Sign In'),
        ),
        body: ConstrainedBox(
          constraints: const BoxConstraints.expand(),
          child: _buildBody(),
        ));
  }
}
 
I/flutter (10569): serverAuthCode: null
flutter doctor -v
[✓] Flutter (Channel dev, 1.19.0-1.0.pre, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.19.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision 456d80b9dd (10 days ago), 2020-05-11 11:45:03 -0400
    • Engine revision d96f962ca2
    • Dart version 2.9.0 (build 2.9.0-7.0.dev 092ed38a87)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (7 available)
    • SM M305F                  • 32003c30dc19668f                     •
      android-arm64  • Android 10 (API 29)
    • Android SDK built for x86 • emulator-5554                        •
      android-x86    • Android 10 (API 29) (emulator)
    • Taha’s iPhone             • 00008020-001059882212002E            • ios
      • iOS 13.5
    • iPhone 11                 • F067D2F5-5386-4EBE-8600-326B40C64462 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
    • macOS                     • macOS                                •
      darwin-x64     • Mac OS X 10.15.4 19E287
    • Web Server                • web-server                           •
      web-javascript • Flutter Tools
    • Chrome                    • chrome                               •
      web-javascript • Google Chrome 81.0.4044.138

• No issues found!

@zeeshanhussain
Copy link

zeeshanhussain commented May 22, 2020

@Faiyyaz you can pull these changes,it works for me now. flutter/plugins#2792

@Faiyyaz
Copy link
Author

Faiyyaz commented May 22, 2020

@zeeshanhussain i don't want to pull any outside commit bcoz even i have one of my commit and a commit of another user with me which works but i want to use official plugin bcoz if they make any updation in future then we need to implement in our commit as well so its better to wait and get this issue solved in official repo itself.

@scaraux
Copy link

scaraux commented May 29, 2020

@zeeshanhussain I pulled your code but still get null for serverAuthCode am I missing something ? Testing on iOS simulator.

@zeeshanhussain
Copy link

@scaraux my changes were only for android, you can pull this for iOs flutter/plugins#2788

@TahaTesser TahaTesser added platform-web Web applications specifically platform-android Android applications specifically platform-ios iOS applications specifically labels Jul 29, 2020
@ferhatb ferhatb added the assigned for triage issue is assigned to a domain expert for further triage label Jul 30, 2020
@ditman
Copy link
Member

ditman commented Aug 4, 2020

As you can see here:
https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in_web/lib/google_sign_in_web.dart#L135-L146

Web has never had this feature (although it seems it may be implemented, if you can request offline access after authenticating).

I have revived #62474 to track progress of the web implementation only (this seems like a catch-all issue), if anybody wants to tackle it ASAP. I've assigned the "new feature" labels there as well, and removed "platform-web" from here.

@ditman ditman removed their assignment Aug 4, 2020
@ditman ditman added P3 Issues that are less important to the Flutter project c: new feature Nothing broken; request for a new capability and removed platform-web Web applications specifically labels Aug 4, 2020
@DreamCatcher-SM
Copy link

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

@zeeshanhussain
Copy link

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it .
Thanks for all your efforts you are doing a great job 👌🏻

You can pick these pull requests
flutter/plugins#2788
flutter/plugins#2792

@aseef17
Copy link

aseef17 commented Oct 5, 2020

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

I merged the changes from the 2 PRs into one so that it's easier to use.

You can just add google_sign_in your project like
(in your pubspec.yaml file)

  google_sign_in:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: master

And add a dependacy override for google_sign_in_platform_interface

dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface

To get this to work in for iOS, you have to add a new key in your GoogleService-Info.plist file

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be under "oauth_client" object with the name "client_id"

This has been tested on both Android and iOS to obtain the serverAuthCode.

Hope this helps until the current PRs are merged

NOTE:- This is a current fork of the plugins in their current state and I have no intention to update them with the newer updates from the Flutter Team

@trieuvusetacinq
Copy link

[google_sign_in 4.5.6] I still get serverAuthCode as null.

@DreamCatcher-SM
Copy link

[google_sign_in 4.5.6] I still get serverAuthCode as null.

use the solution provided by : @aseef17

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

I merged the changes from the 2 PRs into one so that it's easier to use.

You can just add google_sign_in your project like
(in your pubspec.yaml file)

  google_sign_in:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: master

And add a dependacy override for google_sign_in_platform_interface

dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface

To get this to work in for iOS, you have to add a new key in your GoogleService-Info.plist file

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be under "oauth_client" object with the name "client_id"

This has been tested on both Android and iOS to obtain the serverAuthCode.

Hope this helps until the current PRs are merged

NOTE:- This is a current fork of the plugins in their current state and I have no intention to update them with the newer updates from the Flutter Team

@aseef17
Copy link

aseef17 commented Apr 12, 2021

This solution works 👍 , but now i wish to migrate my app to null safety and since this fork depends on non null safe versions of packages I am facing issues with dependency resolution. @aseef17 is it possible for you to update the fork just this one time as null safety is a very big feature, or do you suggest any other method?

@ManasviPatidar
May I know what are issues you are facing. I recently did an update to null safety for one of my client projects and was able to resolve this without the need of updating the package?

@ManasviPatidar
Copy link

ManasviPatidar commented Apr 12, 2021

@aseef17 This is the issue:-
Running "flutter pub get" in my_app...
Because every version of google_sign_in_platform_interface from git depends on quiver ^2.0.0 and camera >=0.8.0 depends on quiver ^3.0.0, google_sign_in_platform_interface from git is incompatible with camera >=0.8.0.
So, because prescription_app depends on both camera ^0.8.1 and google_sign_in_platform_interface from git, version solving failed.

@Aqua-Ye
Copy link

Aqua-Ye commented Apr 15, 2021

I have the same issue regarding quiver dependency:

Because every version of google_sign_in_platform_interface from git depends on quiver ^2.0.0 and every version of dio_http_cache from git depends on quiver ^3.0.0, google_sign_in_platform_interface from git is incompatible with dio_http_cache from git.

@OhTerryTorres
Copy link

OhTerryTorres commented Apr 23, 2021

@aseef17's workaround has done well for a while, but version solving has become an issue as we've updated other dependencies in our project. Integrating GoogleSignInPlatform has not helped either, as getTokens also returns a null serverAuthCode. Google sign in is useless for our purposes without the serverAuthCode.

@aseef17
Copy link

aseef17 commented Apr 23, 2021

I'll try to update the dependencies by this weekend. I still don't understand why the Flutter team has not integrated this yet though.

@OhTerryTorres
Copy link

@aseef17 Obviously I didn't expect you to have to do that kind of work, but of course I appreciate it.

@Julcarl
Copy link

Julcarl commented Apr 27, 2021

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

I merged the changes from the 2 PRs into one so that it's easier to use.

You can just add google_sign_in your project like
(in your pubspec.yaml file)

  google_sign_in:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: master

And add a dependacy override for google_sign_in_platform_interface

dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface

To get this to work in for iOS, you have to add a new key in your GoogleService-Info.plist file

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be under "oauth_client" object with the name "client_id"

This has been tested on both Android and iOS to obtain the serverAuthCode.

Hope this helps until the current PRs are merged

NOTE:- This is a current fork of the plugins in their current state and I have no intention to update them with the newer updates from the Flutter Team

This solution works for me in mobile device however in web I still got null value

@vlidholt
Copy link
Contributor

vlidholt commented Jun 9, 2021

It would be great to get this issue fixed as it is a blocker for anyone who wants to do server-side authentication for Google sign-in.

I did a null-safe version that is working for me. Just add the git dependency:

google_sign_in:
    git:
      url: https://github.com/serverpod/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: serverpod

It's possible you also need to add to your GoogleService-Info.plist (didn't try without):

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be the object with the name "client_id".

@OhTerryTorres
Copy link

OhTerryTorres commented Jun 16, 2021

It's pretty astonishing this issue, which makes server side authentication impossible, has gone unaddressed over almost a dozen new versions.

@sailes-shakya
Copy link

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

I merged the changes from the 2 PRs into one so that it's easier to use.

You can just add google_sign_in your project like
(in your pubspec.yaml file)

  google_sign_in:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: master

And add a dependacy override for google_sign_in_platform_interface

dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface

To get this to work in for iOS, you have to add a new key in your GoogleService-Info.plist file

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be under "oauth_client" object with the name "client_id"

This has been tested on both Android and iOS to obtain the serverAuthCode.

Hope this helps until the current PRs are merged

NOTE:- This is a current fork of the plugins in their current state and I have no intention to update them with the newer updates from the Flutter Team

[google_sign_in 4.5.6] I still get serverAuthCode as null.

use the solution provided by : @aseef17

Is there any work around for getting serverAuthCode on android/iOS??
let's just say my future depends on it 😅.
Thanks for all your efforts you are doing a great job 👌🏻

I merged the changes from the 2 PRs into one so that it's easier to use.
You can just add google_sign_in your project like
(in your pubspec.yaml file)

  google_sign_in:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: master

And add a dependacy override for google_sign_in_platform_interface

dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/aseef17/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface

To get this to work in for iOS, you have to add a new key in your GoogleService-Info.plist file

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file
It'll be under "oauth_client" object with the name "client_id"
This has been tested on both Android and iOS to obtain the serverAuthCode.
Hope this helps until the current PRs are merged

i implement this,,still my serverauthcode is comming null.

@f-person
Copy link

f-person commented Aug 23, 2021

@OhTerryTorres your proposed solution doesn't work on Android (but works on iOS). Do you have any ideas why?

@f-person
Copy link

@OhTerryTorres your proposed solution doesn't work on Android (but works on iOS). Do you have any ideas why?

I got it working on Android but the server throws Error fetching OAuth2 access token, message: 'unauthorized_client: Unauthorized'

@mikeyyyzhao
Copy link

I tried @vlidholt 's branch but after I hit login, the simulator would always crash. However, when I ran the same code but with the default google_sign_in library (5.0.7), I got null as the response when trying to get the serverAuthCode. Does any know why the simulator would crash?

@vanfresh
Copy link

vanfresh commented Sep 5, 2021

This took me a few hours to get working. So to save everyone's time, here are the steps I took.

Part 1: Fork repo

  1. Fork flutter/plugin (https://github.com/flutter/plugins.git)
  2. Add a second remote repo from Aseef17 (https://github.com/aseef17/plugins.git)
  3. Merge second remote repo into master
  4. Push to origin with compile error from interface (we fix this in the next step) (note: there is a more elegant way to fix this by referencing the local package, but I couldn't be bothered)
  5. Add dependency override for google_sign_in_platform_interface in the pubspec.yaml
dependency_overrides:
  google_sign_in_platform_interface:
    git:
      url: https://github.com/your_repo/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface
  1. Now pull from origin to fix compile error from interface
  2. Push to origin

Part 2: Create Client ID

  1. Go to Google OAuth Console
  2. Create a new Client ID for Web Applications
  3. Save the Client ID and Client Secret

Part 3a: Setup Android

  1. Add the new Client ID to string.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="default_web_client_id">XXX</string>
</resources>
  1. If you have Firebase, update new google-services.json which now has the new Client ID (optional)

Part 3b: Setup iOS

  1. Manually add the new Client ID to GoogleService-Info.plist
<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

Part 4: Override dependencies

  1. Override google_sign_in and google_sign_in_platform_interface in your project with your fork repo
  google_sign_in:
    git:
      url: https://github.com/your_repo/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: branch or specific_commit
  google_sign_in_platform_interface:
    git:
      url: https://github.com/your_repo/plugins.git
      path: packages/google_sign_in/google_sign_in_platform_interface
      ref: branch or specific_commit```

@JeromeGsq
Copy link

It would be great to get this issue fixed as it is a blocker for anyone who wants to do server-side authentication for Google sign-in.

I did a null-safe version that is working for me. Just add the git dependency:

google_sign_in:
    git:
      url: https://github.com/serverpod/plugins.git
      path: packages/google_sign_in/google_sign_in
      ref: serverpod

It's possible you also need to add to your GoogleService-Info.plist (didn't try without):

<key>SERVER_CLIENT_ID</key>
<string>YOUR_CLIENT_ID_HERE</string>

You can find it in your firebase project settings or you can just check your google-services.json file It'll be the object with the name "client_id".

Thanks for your work, it works fine on Android and iOS. On the other hand, I cannot launch the application on the iOS simulator because of an error. You know why?


building for iOS Simulator, but linking in object file built for iOS, file '/ios/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn' for architecture arm64

@rmkubala
Copy link

If anyone is still seeking a solution, here's a web implementation of a custom google sign in client: https://stackoverflow.com/questions/69746035/flutter-web-google-sign-in-how-to-retrieve-refreshtoken/69746036#69746036

@stuartmorgan-g
Copy link
Contributor

Closing as fixed by flutter/plugins#4180

@darshankawar darshankawar added the r: fixed Issue is closed as already fixed in a newer version label Nov 1, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
assigned for triage issue is assigned to a domain expert for further triage c: new feature Nothing broken; request for a new capability found in release: 1.19 Found to occur in 1.19 has reproducible steps The issue has been confirmed reproducible and is ready to work on p: google_sign_in The Google Sign-In plugin P3 Issues that are less important to the Flutter project package flutter/packages repository. See also p: labels. platform-android Android applications specifically platform-ios iOS applications specifically r: fixed Issue is closed as already fixed in a newer version
Projects
None yet
Development

Successfully merging a pull request may close this issue.