Forum Xamarin.iOS

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

How to trigger OnAppearing on Xamarin.IOS when app coming foreground from background?

SerenaSerena Member ✭✭

I would like to call RefreshView's command to refresh the page in OnAppearing method.

I clicked home button to turn it in background. Then return to the app, it didn't hit methods in the OnAppearing method. But Android is working well.

I researched a lot and tried methods in this post:
1. setting ios:Page.ModalPresentationStyle="FullScreen" in xaml
2. create custom renderer to 'hack' ios appearing
neither of them worked.

Also try this method:
Creating event handler is able to hit the point, but causing other issues against my business logic requirement.

Any other workaround? Thanks in advance.

Best Answer

Answers

Sign In or Register to comment.