Xamarin.Android mvvmcross app crashes when launching with intent filter

后端 未结 1 1705
执笔经年
执笔经年 2021-01-16 14:38

When opening up the android application via a link, the android application crashes, with a NullReferenceExcetpion.

The NRE happens in the

相关标签:
1条回答
  • 2021-01-16 15:38

    I think this has to do with: https://github.com/MvvmCross/MvvmCross/issues/1192

    Try something like this:

    protected override void OnCreate(Bundle bundle)
    {
        var setup = MvxAndroidSetupSingleton.EnsureSingletonAvailable(ApplicationContext);
        setup.EnsureInitialized();
    
        base.OnCreate(bundle);
    }
    
    0 讨论(0)
提交回复
热议问题