Skip to content
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

_googleManager.Login(OnLoginComplete); error #4

Closed
ghost opened this issue Feb 8, 2018 · 5 comments
Closed

_googleManager.Login(OnLoginComplete); error #4

ghost opened this issue Feb 8, 2018 · 5 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Feb 8, 2018

I am getting this error when I click on the login button:
clipboard04154

Unhandled Exception:

System.NullReferenceException: Object reference not set to an instance of an object.

Thank you for answers !

@DanielCauser
Copy link
Owner

DanielCauser commented Feb 8, 2018

Can you double check and verify if the _googleManager service is being initialized on your ViewModel construtor and also, make sure you are registering the dependency on the MainActivity.cs & AppDelegate.cs

@ghost
Copy link
Author

ghost commented Feb 8, 2018

I checked everything. Android and iOS are both initialized. What to do now ?
Thank for your answer !

@DanielCauser
Copy link
Owner

HEy @AdamSotak would it be possible for you to share your branch/fork of the project so people could take a look and bebug it?

I tested out the latest sample we have on the repo and it is working fine!

@ghost ghost closed this as completed Feb 10, 2018
@ghost ghost reopened this Feb 10, 2018
@ghost ghost closed this as completed Feb 10, 2018
@ghost ghost reopened this Feb 10, 2018
@ghost
Copy link
Author

ghost commented Feb 10, 2018

Does this project run only as PCL ? Because I am using .NetStandard 2.0. Is this the problem ?
Thank you for your answer !

@DanielCauser
Copy link
Owner

DanielCauser commented Feb 10, 2018

Hmmm, this project is definitely for PCL. I need to make a new sample with net Standart. I have not checked if the packages are avaiable in standart yet. I created two new issues to create new repos with projects for Xamarin.Forms in Net Standart. #5 and #6

@DanielCauser DanielCauser unassigned ghost Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant