I am still getting used to Xamarin.Forms and I am on very basic level. I went through many articles for my issue, but to the end couldn't resolve it. So...
Currently I am trying to add Google authentication inside my Xamarin.Forms application, which use Droid and iOS (no WP). So far I am following guide from here. I am using Xamarin.Auth to authenticate to Google.
Here is some part from my source code.
The problem is coming after my method complete it's work. So after my last line:
presenter.Login(authenticator);
everything looks alright and debugging I am following that compiler goes out of method without any errors, but then I receive exception, which you can see here. It's "No compatible code running".
Here some more information regarding my source code:
global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);
Source of UrlSchemeInterceptorActivity
Here are the main articles I went through deeply => Link 1, Link 2 and Link 3, but still couldn't resolve the issue.
I am not sure where the error comes from, or can I can I continue debugging it to resolve issue.
Thanks in advance
Answers
Found solution, I provide it here
Hello Nikola,
When i following your sample, "AuthenticationState" in both places show no package related to.
PCL: AuthenticationState.Authenticator = authenticator;
Droid: AuthenticationState.OnPageLoading(uri);
Complier reports:
Error CS0103 The name 'AuthenticationState' does not exist in the current context
Could u tell me what package it related to? thanks.
Did you find out where AuthenticationState resolves too?
it's a class in the pcl that you have to add, it's not found in your native assemblies.
it's simply this: