我成功地让Oauth2使用iOS和这个Xamarin示例使用我的localhost实现:https://github.com/rasmuschristensen/SimpleOAuth
但是,使用Android时,仅显示空白灰页。没有错误消息。我无法弄清楚为什么:
//Declare it here
String [] mapinfo;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View pvp = inflater.inflate(R.layout.layout_pvp, container, false);
//do it here as here you'll have the required context
mapinfo = new String[] {getResources().getString(R.string.permafrostInfo), getResources().getString(R.string.riverInfo),
getResources().getString(R.string.reaktorInfo), getResources().getString(R.string.oilInfo),
getResources().getString(R.string.mauntainInfo), getResources().getString(R.string.islandInfo),
getResources().getString(R.string.coldInfo), getResources().getString(R.string.pisInfo),
getResources().getString(R.string.fireInfo), getResources().getString(R.string.airInfo),};
}
事件不会在Android的LoginpageRenderer.cs中被触发。
这是迄今为止我发现的最好和最新的Xamarin.Auth样本。有什么想法吗?
答案 0 :(得分:0)
此问题现已在新的Xamarin.Auth 1.3中修复。