简体   繁体   中英

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

Note that I am not using the latest XF as that's causing other known issues that stop the app from working properly.

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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