简体   繁体   English

Shell.Current.Navigation.PopAsync()在返回页面时触发iOS的OnAppearing,而不是Android

[英]Shell.Current.Navigation.PopAsync() fires OnAppearing for iOS but not Android when it goes back a page

I am using the following command to open a new page: 我正在使用以下命令打开一个新页面:

OpenPageCmd = new Command<string>(async (route) => await Shell.Current.GoToAsync(route));

I am using this command to go back to the page: 我正在使用此命令返回页面:

Shell.Current.Navigation.PopAsync();

OnAppearing is being called in iOS but not in Android with XF 4.1.0.709244 在iOS中调用OnAppearing, 但在使用XF 4.1.0.709244的Android中未调用

Note that I am not using the latest XF as that's causing other known issues that stop the app from working properly. 请注意,我没有使用最新的XF,因为这会导致其他已知问题,导致应用程序无法正常运行。

Does anyone have any ideas on how to fix this. 是否有人对如何解决此问题有任何想法。 It's a serious problem for me and holding up release of the app. 对我来说,这是一个严重的问题,并阻止了该应用的发布。

我认为他们直到XF 4.2才实现外壳生命周期

Unfortunately, there was a bug in XF 4.1 where the OnAppearing methods was not executing that was resolved in XF 4.2. 不幸的是, 在XF 4.1中存在一个错误,错误没有执行OnAppearing方法,而在XF 4.2中已解决该错误。 While I understand not being able to update due to other issues that may occur, this may be a case where a choice needs to be made as to which route will be the easier to work around. 虽然我知道由于可能发生的其他问题而无法进行更新,但是在这种情况下,可能需要选择哪种路由更容易解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM