SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

WebAuthenticatorWindow in iOS 13 is displayed as pageSheet

Open munkii opened this issue 6 years ago • 2 comments

The WebAuthenticatorWindow that is used by WebAuthenticator from the FitBitApi provider does not allow the customisation of the ViewController or more specifically the ModalPresentationStyle.

In iOS 13 Apple changed the default presentation style for Modal views to be PageSheet from FullScreen. This affects the way Modal pages are dismissed and in Xamarin Forms that causes issues with ViewIsAppearing\ViewIsDisappearing events.

If the WebAuthenticatorWindow is dismissed by simply swiping down the Navigation Stack in XF becomes broken, the page now being is playing cannot be exited and the app needs restarting.

munkii avatar Dec 04 '19 13:12 munkii

You have complete control over presenting the UI https://github.com/Clancey/SimpleAuth#webview-authentication

Clancey avatar Dec 05 '19 04:12 Clancey

Geez, despite wandering all over the the code in GitHub I could not see this. Thanks

munkii avatar Dec 05 '19 11:12 munkii