解决this问题后,我遇到了另一个问题。
我更改了NuGet软件包,并按照here所述实施了所有操作。
我还在AppDelegate.cs
中添加了初始化代码。但是,如果我按该按钮登录,则会收到以下错误消息:Uncaught Exception: Target of Invoke is null (NullReferenceException)
。
我到目前为止所做的事情:
global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
和global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);
的特定于平台的登录UI
var presenter = new Xamarin.Auth.Presenters.OAuthLoginPresenter();
presenter.Login(authenticator);`
我正在使用Xamarin Live Player在iPhone上部署它。
一些解决方法?
更新: 我能够使用Android模拟器测试该应用程序,并且一切正常。所以我的推测是因为Xamarin Live Player。