Alan2
Alan2

Reputation: 24602

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.

Upvotes: 2

Views: 1361

Answers (2)

Andrew
Andrew

Reputation: 1438

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.

Upvotes: 0

CSharpMinor
CSharpMinor

Reputation: 232

I don't think they implemented shell lifecycle until XF 4.2

Upvotes: 2

Related Questions