rhishikeshj / Xamarin.GoogleAuth

Cross platform plugin for doing Google Authentication for Xamarin iOS and Android apps
BSD 2-Clause "Simplified" License
8 stars 4 forks source link

iOS Device Issue #3

Closed mmajors closed 7 years ago

mmajors commented 7 years ago

Hello,

I have integrated your library into my project and it is running fine on a Simulator. When I run it on a device, I receive this error:

uiDelegate must either be a |UIViewController| or implement the |signIn:presentViewController:| and |signIn:dismissViewController:| methods from |GIDSignInUIDelegate|

Any assistance would be greatly appreciated.

Thanks, Marc

mmajors commented 7 years ago

For some reason, GIDSignIn.SharedInstance.UiDelegate was null in my case when calling SignIn(). So, added a check in verifyInit() to see if the uiDelegate is null. If so, assign it to a new instance of GoogleSignInUIDelegate.