Bug 57103 - Xamarin's GoogleSignIn component doesn't call SignedIn() method
Summary: Xamarin's GoogleSignIn component doesn't call SignedIn() method
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Staging (addons.xamstage.com)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Israel Soto [MSFT]
Depends on:
Reported: 2017-06-02 13:00 UTC by anastasiia
Modified: 2017-11-24 22:48 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Modified sample project (346.20 KB, application/zip)
2017-06-02 13:02 UTC, anastasiia

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 57103 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description anastasiia 2017-06-02 13:00:21 UTC
I'am trying to add Google authorization to my iOS application using Google SignIn component (https://components.xamarin.com/view/googleiossignin). Everything works fine in the sample, but when I add this code to my application, the SignedIn delegate doesn't called. It only happens if I have a specific code that describes a work with threads, without this code it works fine. And after that the Google button stops to work at all, so I need to redeploy my application.

I'll attach the modified sample so you can try it by yourself. Steps to reproduce:
1) put your google keys in GoogleService-Info.plist and in Info.plist
2) remove an app from your iPhone if you have it installed
3) clean project
4) deploy it on your iPhone
5) press SignIn button
6) login via Google
7) see that nothing happens after and Google button doesn't work anymore

I've seen some comments in the component store that may be connected with this issue.

Please, take a look on this issue as soon as you can, maybe there are some other ways how to make it work.
Comment 1 anastasiia 2017-06-02 13:02:41 UTC
Created attachment 22652 [details]
Modified sample project
Comment 2 Israel Soto [MSFT] 2017-11-24 22:44:40 UTC
@anastasiia I can reproduce the bug. 

As a workaround for now, please, use the DidSignIn and DidDisconnect methods of ISignInDelegate interface instead of using the events of SignIn.

I will keep investigating this.
Comment 3 Israel Soto [MSFT] 2017-11-24 22:48:22 UTC
The code could look like this: https://gist.github.com/SotoiGhost/61c3bbf5256616b768d81133cfeb62d9