I am running into an issue (one that I could probably resolve a different way, but I wanted to make sure this is an issue) where when
OnAppearing gets called is different for Android and iOS.
As an example, I have a root TabbedPage, and then I
PushModalAsync a LoginPage (ContentPage) on top of it, and afterwards
PopModalAsync. For iOS, the
OnAppearing method for the TabbedPage seems to get called when the TabbedPage gets created, as well as when the LoginPage gets popped. This makes sense to some extent according to the documentation as the TabbedPage is probably "visible" initially that I can't actually see, then LoginPage is pushed immediately, then when popped, the TabbedPage is visible again. (Just FYI, the documentation for
OnAppearing says "When overridden, allows application developers to customize behavior immediately prior to the Xamarin.Forms.Page becoming visible."
For Android though, the
OnAppearing method gets called at the beginning, but not again when after the
PopModalAsync. Has anyone else ran into this behavior? Anyone know at least a quick solution for now (as in a way to force call
OnAppearing on the TabbedPage from the LoginPage)?